/* kucukyalisutesisatcisi.com — siteye ozel katman (petrol yesili + turuncu cagri) */
:root { --kys-turuncu: #ea580c; --kys-turuncu-koyu: #c2410c; --kys-wa: #15803d; }

/* --- ust serit: masaustunde ince bilgi bandi --- */
.ustbar { font-size: .85rem; }
.ustbar .kap { justify-content: flex-end; align-items: center; }
.ustbar span { margin-right: auto; color: #fff; font-weight: 600; letter-spacing: .01em; }
.ustbar span::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #34d399; margin-right: .5rem; vertical-align: middle; }
.ustbar a { font-weight: 600; color: #fff; }
.ustbar a[href^="tel:"] { color: #fdba74; }
.ustbar a:hover { color: #fff; text-decoration: underline; }

/* --- header --- */
.marka { color: var(--metin); font-size: 1.25rem; }
.hdr-tel { font-size: 1.05rem; color: var(--vurgu-koyu); }
.hdr-tel::before { content: "☎ "; color: var(--kys-turuncu); }
.hdr-dugme { background: var(--kys-wa); border-radius: .45rem; }
.hdr-dugme:hover { background: #166534; }
nav.ana a { font-weight: 600; color: var(--metin); }

/* --- slider --- */
.bl-slider .bl-slayt-baslik { font-size: clamp(1.6rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.bl-slider .bl-slayt-aciklama { font-size: clamp(.95rem, 1.4vw, 1.15rem); max-width: 34rem; }
.bl-slider .bl-slayt-buton { background: var(--kys-turuncu); color: #fff; border-radius: .45rem; font-weight: 700; padding: .8rem 1.5rem; border: 0; }
.bl-slider .bl-slayt-buton:hover { background: var(--kys-turuncu-koyu); color: #fff; }

/* --- bolum basliklari ve kartlar --- */
.bl-bolum-baslik { letter-spacing: -.015em; }
.bl-ust-yazi { color: var(--kys-turuncu); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.bl-kartlar-yatay .bl-kart-ikon { color: var(--vurgu); }
.bl-kartlar-numarali .bl-kart-no { background: var(--kys-turuncu); color: #fff; }
.kart { border-radius: .5rem; }
.kart-ad { font-size: 1.08rem; }
.kart:hover .kart-ad { color: var(--vurgu); }

/* --- CTA: telefon turuncu, WhatsApp yesil --- */
.bl-cta a[href^="tel:"] { background: var(--kys-turuncu) !important; color: #fff !important; border-color: var(--kys-turuncu) !important; }
.bl-cta a[href*="wa.me"] { background: var(--kys-wa) !important; color: #fff !important; border-color: var(--kys-wa) !important; }

/* --- hizmet sayfasi: form kutusu --- */
.bl-metin h2 { font-size: 1.45rem; }

/* --- mobil: ust serit gizli; alt seritte Iletisim Araclari > Sabit Butonlar var --- */
@media (max-width: 767px) { .ustbar { display: none; } }
@media (max-width: 860px) { .hdr-dugme { display: none; } }

/* --- bolge kartlari: kompakt --- */
#bolgeler .bl-kart { padding: .7rem .9rem; align-items: center; }
#bolgeler .bl-kart-ikon { width: 2rem; height: 2rem; }
#bolgeler .bl-kart-baslik { margin: 0; font-size: .98rem; }
@media (max-width: 860px) { #bolgeler .bl-kart-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .6rem; } }

/* --- hizmet kartlari bolum basligi digerleriyle ayni olcude --- */
.bl-hizmet-baslik { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.015em; }
.bl-iletisim .bl-hizmet-baslik { font-size: 1.3rem; margin-top: 0; }

/* --- sayfa tam genislik slider'la basliyorsa header ile slider arasinda bosluk birakma --- */
main:has(> .kap > .sayfa-bloklar > section.bl-slider.bl-tam:first-of-type) { padding-top: 0; }

/* --- giris hero: fotograf zemin + solda yazi, sagda Fatih Usta (arka plansiz) --- */
.sayfa-bloklar > .bl-kahraman:first-child {
  background: linear-gradient(90deg, rgba(8,36,40,.95) 0%, rgba(8,36,40,.86) 45%, rgba(8,36,40,.55) 100%), url(/upload/slider/kys-slayt-2.jpg) center 45% / cover no-repeat;
  color: #fff; padding-top: 3.5rem; padding-bottom: 0; overflow: hidden;
}
.sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-ic { align-items: end; grid-template-columns: 1.25fr .9fr; }
.sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-metin { padding-bottom: 3.5rem; align-self: center; }
.sayfa-bloklar > .bl-kahraman:first-child .bl-ust-yazi { color: #fdba74; }
.sayfa-bloklar > .bl-kahraman:first-child .bl-ust-yazi::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #34d399; margin-right: .5rem; vertical-align: middle; }
.sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-baslik { color: #fff; font-size: clamp(2.2rem, 1.2rem + 3.2vw, 3.8rem); }
.sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-yazi { color: #d6e4e2; max-width: 36rem; }
.sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-maddeler li { color: #fff; }
.sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-maddeler li::before { background: var(--kys-turuncu); }
.sayfa-bloklar > .bl-kahraman:first-child .bl-k-dugme { background: var(--kys-wa); color: #fff; border-color: var(--kys-wa); }
.sayfa-bloklar > .bl-kahraman:first-child .bl-k-dugme.ikincil { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-gorsel { align-self: end; display: flex; justify-content: center; }
.sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-gorsel img { border-radius: 0; width: auto; max-width: 100%; max-height: 34rem; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
@media (max-width: 56rem) {
  .sayfa-bloklar > .bl-kahraman:first-child { padding-top: 2.2rem; }
  .sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-ic { grid-template-columns: 1fr; gap: 1rem; }
  .sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-metin { padding-bottom: 0; }
  .sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-gorsel img { max-height: 21rem; }
}

/* hizmet detay: ust fotograf metin sutunu genisliginde */
.hz-detay .sayfa-bloklar > .bl-gorsel:first-child { max-width: 52rem; margin-top: .25rem; }
.hz-detay .sayfa-bloklar > .bl-gorsel:first-child img { aspect-ratio: 3/2; object-fit: cover; border-radius: .75rem; box-shadow: 0 10px 30px -12px rgba(5,46,48,.35); }

/* === 24.11 petrol kimligi: ortak gecis (footer karti, iletisim formu) === */
:root {
  --kys-gecis: radial-gradient(55% 75% at 80% 30%, rgba(94,234,212,.36) 0%, rgba(94,234,212,0) 70%), radial-gradient(40% 60% at 8% 95%, rgba(20,184,166,.28) 0%, rgba(20,184,166,0) 70%), linear-gradient(112deg, #052e30 0%, #0b4f52 34%, #0f766e 66%, #14b8a6 100%);
}

/* --- hero: alt kenarda iki katmanli, yavas akan dalga (fotograf zemin korunur) --- */
.sayfa-bloklar > .bl-kahraman:first-child { position: relative; isolation: isolate; }
.sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-ic { position: relative; z-index: 1; }
.sayfa-bloklar > .bl-kahraman:first-child::before,
.sayfa-bloklar > .bl-kahraman:first-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; pointer-events: none;
  background: var(--zemin, #fff);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30Q150 4 300 30T600 30V60H0Z'/%3E%3C/svg%3E") 0 100% / 600px 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30Q150 4 300 30T600 30V60H0Z'/%3E%3C/svg%3E") 0 100% / 600px 100% repeat-x;
}
.sayfa-bloklar > .bl-kahraman:first-child::before {
  height: 78px; opacity: .28; -webkit-mask-size: 900px 100%; mask-size: 900px 100%; -webkit-mask-position: 220px 100%; mask-position: 220px 100%;
  animation: kys-dalga-arka 30s linear infinite;
}
.sayfa-bloklar > .bl-kahraman:first-child::after { height: 52px; animation: kys-dalga-on 20s linear infinite; }
@keyframes kys-dalga-on { to { -webkit-mask-position: 600px 100%; mask-position: 600px 100%; } }
@keyframes kys-dalga-arka { to { -webkit-mask-position: -680px 100%; mask-position: -680px 100%; } }
@media (max-width: 56rem) {
  .sayfa-bloklar > .bl-kahraman:first-child::before { height: 44px; -webkit-mask-size: 520px 100%; mask-size: 520px 100%; }
  .sayfa-bloklar > .bl-kahraman:first-child::after { height: 30px; -webkit-mask-size: 360px 100%; mask-size: 360px 100%; }
  @keyframes kys-dalga-on { to { -webkit-mask-position: 360px 100%; mask-position: 360px 100%; } }
  @keyframes kys-dalga-arka { to { -webkit-mask-position: -300px 100%; mask-position: -300px 100%; } }
}

/* === footer: kart ustte (Fatih Usta karttan tasar); altinda dalgali petrol govde, beyaz yazi === */
footer.ftk .ftk-kart { background: radial-gradient(60% 90% at 85% 0%, rgba(45,212,191,.40) 0%, rgba(45,212,191,0) 65%), linear-gradient(120deg, #042326 0%, #0b4f52 45%, #0f6b64 100%); box-shadow: 0 34px 60px -26px rgba(2,30,32,.85), 0 0 0 1px rgba(255,255,255,.22), inset 0 1px 0 rgba(255,255,255,.35); }
footer.ftk .ftk-tel-btn { color: #0b4f52; }
footer.ftk .ftk-ust { position: relative; z-index: 3; margin-bottom: -8rem; }
footer.ftk .ftk-govde {
  position: relative; isolation: isolate; border-top: 0; color: rgba(255,255,255,.74);
  background: radial-gradient(55% 75% at 80% 30%, rgba(94,234,212,.32) 0%, rgba(94,234,212,0) 70%), linear-gradient(112deg, #0b4f52 0%, #0f766e 55%, #14b8a6 100%);
}
footer.ftk .ftk-ust + .ftk-govde { padding-top: 12.5rem; }
footer.ftk .ftk-govde::before, footer.ftk .ftk-govde::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; z-index: 0; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30Q150 56 300 30T600 30V0H0Z'/%3E%3C/svg%3E") 0 0 / 600px 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30Q150 56 300 30T600 30V0H0Z'/%3E%3C/svg%3E") 0 0 / 600px 100% repeat-x;
}
footer.ftk .ftk-govde::before { height: 78px; background: #2dd4bf; opacity: .35; -webkit-mask-size: 900px 100%; mask-size: 900px 100%; animation: kys-fdalga-arka 32s linear infinite; }
footer.ftk .ftk-govde::after { height: 52px; background: var(--zemin, #fff); animation: kys-fdalga-on 22s linear infinite; }
footer.ftk .ftk-izgara { position: relative; z-index: 1; }
@keyframes kys-fdalga-on { to { -webkit-mask-position: -600px 0; mask-position: -600px 0; } }
@keyframes kys-fdalga-arka { to { -webkit-mask-position: 900px 0; mask-position: 900px 0; } }
footer.ftk .ftk-govde .ftk-logo { color: #fff; }
footer.ftk .ftk-govde h3 { color: #fff; }
footer.ftk .ftk-govde h3::after { content: ""; display: block; width: 2rem; height: 3px; margin-top: .55rem; border-radius: 3px; background: linear-gradient(90deg, #fdba74, #ea580c); }
footer.ftk .ftk-govde ul a { color: rgba(255,255,255,.8); transition: color .15s, padding-left .15s; }
footer.ftk .ftk-govde ul a:hover { color: #fed7aa; padding-left: .2rem; }
footer.ftk .ftk-sosyal a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
footer.ftk .ftk-sosyal a:hover { background: var(--kys-turuncu); border-color: var(--kys-turuncu); }
footer.ftk .ftk-iletisim .ftk-i { background: rgba(255,255,255,.1); color: #99f6e4; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
footer.ftk .ftk-iletisim a, footer.ftk .ftk-iletisim span { color: rgba(255,255,255,.88); }
footer.ftk .ftk-alt { background: #0a4446; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.62); }
footer.ftk .ftk-alt a { color: rgba(255,255,255,.78); }
footer.ftk .ftk-alt a:hover { color: #fed7aa; }
@media (max-width: 52rem) {
  footer.ftk .ftk-ust { margin-bottom: -9rem; }
  footer.ftk .ftk-ust + .ftk-govde { padding-top: 12rem; }
  footer.ftk .ftk-govde::before { height: 44px; -webkit-mask-size: 520px 100%; mask-size: 520px 100%; }
  footer.ftk .ftk-govde::after { height: 30px; -webkit-mask-size: 360px 100%; mask-size: 360px 100%; }
  @keyframes kys-fdalga-on { to { -webkit-mask-position: -360px 0; mask-position: -360px 0; } }
  @keyframes kys-fdalga-arka { to { -webkit-mask-position: 520px 0; mask-position: 520px 0; } }
}
@media (prefers-reduced-motion: reduce) {
  footer.ftk .ftk-govde::before, footer.ftk .ftk-govde::after,
  .sayfa-bloklar > .bl-kahraman:first-child::before, .sayfa-bloklar > .bl-kahraman:first-child::after { animation: none; }
}

/* === marka: anahtar ikonu site adinin solunda (header + footer) === */
.marka { display: inline-flex; align-items: center; gap: .6rem; }
.marka::before { content: ""; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; background: url("/upload/site/logo-ikon.webp") center / contain no-repeat; }
footer.ftk .ftk-govde .ftk-logo { display: inline-flex; align-items: center; gap: .65rem; }
footer.ftk .ftk-govde .ftk-logo::before { content: ""; flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 50%; background: url("/upload/site/logo-ikon.webp") center / contain no-repeat; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 8px 20px -8px rgba(2,30,32,.6); }
@media (max-width: 480px) { .marka::before { width: 2.2rem; height: 2.2rem; } }

/* === iletisim sayfasi: footer karti gereksiz (sayfada zaten tel/WA + form var) === */
html:has(link[rel="canonical"][href$="/iletisim"]) footer.ftk .ftk-ust { display: none; }
html:has(link[rel="canonical"][href$="/iletisim"]) footer.ftk .ftk-ust + .ftk-govde { padding-top: 5.5rem; }

/* === iletisim formu: premium — petrol gecisli kart, icinde beyaz form paneli === */
.bl-iletisim {
  position: relative; overflow: hidden; isolation: isolate; max-width: none;
  margin: 2rem 0; padding: 2.2rem; border: 0; border-radius: 1.4rem; color: #fff;
  background: var(--kys-gecis);
  box-shadow: 0 30px 60px -30px rgba(2,30,32,.7), 0 0 0 1px rgba(255,255,255,.18) inset;
}
/* dekor: buyuk silik anahtar + ince halka */
.bl-iletisim::before { content: ""; position: absolute; z-index: -1; width: 20rem; height: 20rem; left: -6rem; bottom: -8rem; opacity: .10;
  background: url("/upload/site/logo-ikon.webp") center / contain no-repeat; filter: grayscale(1) brightness(3); }
.bl-iletisim::after { content: ""; position: absolute; z-index: -1; width: 26rem; height: 26rem; right: -9rem; top: -11rem; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.14); box-shadow: 0 0 0 3rem rgba(255,255,255,.04); }
.bl-iletisim .bl-hizmet-baslik { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.bl-iletisim .bl-iletisim-aciklama { color: rgba(255,255,255,.88); margin: 0 0 1.4rem; line-height: 1.6; }
.bl-iletisim .bl-iletisim-form { background: #fff; color: var(--metin); border-radius: 1.1rem; padding: 1.5rem; gap: 1rem; box-shadow: 0 24px 48px -24px rgba(2,30,32,.55); }
.bl-iletisim .bl-iletisim-form label { color: #334155; font-weight: 600; font-size: .85rem; }
.bl-iletisim .bl-iletisim-form input, .bl-iletisim .bl-iletisim-form textarea {
  border: 1.5px solid #d3e7e4; background: #f3faf9; border-radius: .75rem; padding: .8rem .95rem; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.bl-iletisim .bl-iletisim-form input:hover, .bl-iletisim .bl-iletisim-form textarea:hover { border-color: #a7d3cd; }
.bl-iletisim .bl-iletisim-form input:focus, .bl-iletisim .bl-iletisim-form textarea:focus { background: #fff; border-color: #0f766e; box-shadow: 0 0 0 4px rgba(15,118,110,.15); }
.bl-iletisim .bl-iletisim-form .dugme {
  justify-self: stretch; display: inline-flex; justify-content: center; align-items: center; gap: .5rem;
  padding: .95rem 1.4rem; border: 0; border-radius: .85rem; font-size: 1.02rem; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(112deg, var(--kys-turuncu-koyu) 0%, var(--kys-turuncu) 60%, #f97316 100%);
  box-shadow: 0 14px 28px -12px rgba(234,88,12,.7), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.bl-iletisim .bl-iletisim-form .dugme::after { content: "→"; transition: transform .15s; }
.bl-iletisim .bl-iletisim-form .dugme:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 32px -12px rgba(234,88,12,.8), inset 0 1px 0 rgba(255,255,255,.3); }
.bl-iletisim .bl-iletisim-form .dugme:hover::after { transform: translateX(3px); }
.bl-iletisim .bl-iletisim-ok, .bl-iletisim .bl-iletisim-hata { position: relative; }
@media (min-width: 60rem) {
  html:has(link[rel="canonical"][href$="/iletisim"]) .bl-iletisim {
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 3rem; padding: 3rem;
  }
  html:has(link[rel="canonical"][href$="/iletisim"]) .bl-iletisim > :not(form) { grid-column: 1; }
  html:has(link[rel="canonical"][href$="/iletisim"]) .bl-iletisim .bl-hizmet-baslik { grid-row: 2; font-size: 2.3rem; line-height: 1.15; }
  html:has(link[rel="canonical"][href$="/iletisim"]) .bl-iletisim .bl-iletisim-aciklama { grid-row: 3; font-size: 1.08rem; max-width: 26rem; }
  html:has(link[rel="canonical"][href$="/iletisim"]) .bl-iletisim .bl-iletisim-form { grid-column: 2; grid-row: 1 / span 4; align-self: center; padding: 2rem; }
  html:has(link[rel="canonical"][href$="/iletisim"]) .bl-iletisim .bl-iletisim-satir { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 40rem) { .bl-iletisim { padding: 1.4rem 1.1rem; } .bl-iletisim .bl-iletisim-form { padding: 1.1rem; } }

/* --- hizmet kartlari her yerde 3'lu (anasayfa/liste ayari hz-s3; "Diger hizmetler" ve bolge izgarasi icin genel kural) --- */
@media (min-width: 900px) { main .izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; } }
@media (min-width: 600px) and (max-width: 899px) { main .izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- footer karti: Fatih Usta'nin govdesi kartin alt kenarina sifir oturur (kart alt ic boslugu 2.4rem) --- */
@media (min-width: 52.01rem) {
  footer.ftk .ftk-gorsel { margin-bottom: -2.4rem; line-height: 0; }
  footer.ftk .ftk-gorsel img { display: block; margin: 0 auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}

/* --- hero basligi iki satir: "Küçükyalı Su Tesisatçısı" / "Fatih Usta" (baslikta satir sonu var) --- */
.sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-baslik { white-space: pre-line; font-size: clamp(1.9rem, .9rem + 2.7vw, 3.15rem); }
@media (min-width: 56.01rem) {
  .sayfa-bloklar > .bl-kahraman:first-child .bl-kahraman-ic { grid-template-columns: 1.5fr .85fr; }
}
