/*
Theme Name: Softhali Kilim Yıkama
Theme URI: https://softhalikilimyikama.com.tr
Author: Osman Erak Dijital
Description: Soft&kilimhaliyikama (Buca / İzmir) için tek sayfa, mobil uyumlu kurumsal tema. Telefon, adres, WhatsApp ve harita bilgileri Görünüm > Özelleştir > İşletme Bilgileri menüsünden değiştirilebilir.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: softhali
*/

:root {
  --ink: #0d2427;
  --ink-2: #33494c;
  --teal: #0b5953;
  --teal-2: #0f766e;
  --mint: #e3f1ee;
  --sand: #f7f2ea;
  --sand-2: #efe6d8;
  --clay: #c0532c;
  --clay-2: #a8431f;
  --gold: #e0a83e;
  --white: #ffffff;
  --line: rgba(13, 36, 39, .1);
  --radius: 22px;
  --shadow: 0 24px 60px -24px rgba(13, 36, 39, .35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kilim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24'%3E%3Cpath d='M0 12 12 0l12 12-12 12z' fill='%23c0532c'/%3E%3Cpath d='M24 12 36 0l12 12-12 12z' fill='%230b5953'/%3E%3Cpath d='M8 12l4-4 4 4-4 4z' fill='%23f7f2ea'/%3E%3Cpath d='M32 12l4-4 4 4-4 4z' fill='%23e0a83e'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 2px solid transparent; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--clay); color: var(--white); box-shadow: 0 14px 30px -12px rgba(192, 83, 44, .7); }
.btn-primary:hover { background: var(--clay-2); }
.btn-wa { background: #1fa855; color: var(--white); box-shadow: 0 14px 30px -12px rgba(31, 168, 85, .6); }
.btn-wa:hover { background: #178a45; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, .6); }
.btn-light { background: var(--white); color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before { content: ""; width: 28px; height: 10px; background: var(--kilim) 0 50% / 20px 10px repeat-x; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(13, 36, 39, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: var(--teal); display: grid; place-items: center; position: relative; overflow: hidden;
}
.brand-mark::after { content: ""; position: absolute; inset: auto 0 0; height: 10px; background: var(--kilim) 0 0 / 20px 10px; }
.brand-mark span { font-family: var(--serif); color: var(--white); font-size: 24px; font-weight: 700; margin-top: -8px; }
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 20px; }
.brand-text small { font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.custom-logo { max-height: 52px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--clay); transition: right .25s ease; }
.main-nav a:hover::after { right: 0; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: .7em 1.2em; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; padding: 70px 0 110px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -180px;
  background: radial-gradient(circle, rgba(15, 118, 110, .18), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-lead { font-size: 19px; color: var(--ink-2); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.rating-chip {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
  padding: 10px 20px 10px 10px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow);
}
.rating-chip .g { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.rating-chip .g svg { width: 22px; height: 22px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.rating-chip b { font-size: 18px; }
.rating-chip small { color: var(--ink-2); font-size: 13px; display: block; line-height: 1.2; }

.hero-visual { position: relative; aspect-ratio: 1 / 1.05; }
.carpet {
  position: absolute; inset: 6% 8% 10% 6%; border-radius: 28px; transform: rotate(-4deg);
  background:
    linear-gradient(var(--teal), var(--teal)) center / 54% 60% no-repeat,
    radial-gradient(circle at 50% 50%, var(--gold) 0 9%, transparent 9.5%),
    var(--clay);
  box-shadow: var(--shadow), inset 0 0 0 14px var(--clay), inset 0 0 0 20px var(--sand), inset 0 0 0 30px var(--clay-2);
  overflow: hidden;
}
.carpet::before, .carpet::after {
  content: ""; position: absolute; left: 34px; right: 34px; height: 24px;
  background: var(--kilim) 0 0 / 48px 24px repeat-x;
}
.carpet::before { top: 42px; }
.carpet::after { bottom: 42px; }
.carpet .diamond {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg);
  border: 10px solid var(--sand); background: var(--clay);
  box-shadow: 0 0 0 10px var(--teal), 0 0 0 16px var(--gold);
}
.carpet .diamond::after { content: ""; position: absolute; inset: 30%; background: var(--gold); }
.carpet .shine {
  position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%);
  animation: shine 5s ease-in-out infinite;
}
@keyframes shine { 0%, 30% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
.hero-photo { position: absolute; inset: 0 0 6% 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
  position: absolute; background: var(--white); border-radius: 18px; padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.3;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 16px; }
.float-card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--teal); flex: none; }
.float-card .ico svg { width: 22px; height: 22px; }
.float-card.one { left: -4%; bottom: 14%; }
.float-card.two { right: -2%; top: 8%; animation-delay: -3s; }
.bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, .3) 40%, rgba(15, 118, 110, .15)); border: 1px solid rgba(255, 255, 255, .8); animation: rise 9s ease-in infinite; }
.bubble.b1 { width: 54px; height: 54px; left: 12%; top: 12%; }
.bubble.b2 { width: 28px; height: 28px; right: 18%; bottom: 20%; animation-delay: -4s; }
.bubble.b3 { width: 38px; height: 38px; left: 55%; top: -2%; animation-delay: -6s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes rise { 0% { transform: translateY(20px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateY(-60px); opacity: 0; } }

/* Kilim divider */
.kilim-strip { height: 20px; background: var(--kilim) 0 0 / 40px 20px repeat-x; }

/* Stats */
.stats { background: var(--ink); color: var(--white); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 0 12px; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 44px; line-height: 1.1; color: var(--gold); }
.stat span { color: rgba(255, 255, 255, .75); font-size: 15px; }

/* Sections */
.section { padding: 110px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(34px, 4vw, 52px); margin-top: 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  background: var(--white); border-radius: var(--radius); padding: 34px 28px 30px; position: relative; overflow: hidden;
  border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease;
}
.service::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--kilim) 0 0 / 16px 8px; transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service:hover::after { transform: scaleX(1); }
.service .ico { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: var(--mint); color: var(--teal); margin-bottom: 22px; }
.service .ico svg { width: 32px; height: 32px; }
.service:nth-child(2) .ico { background: #fbe9e1; color: var(--clay); }
.service:nth-child(4) .ico { background: #fbf1dc; color: #a87512; }
.service h3 { font-size: 24px; }
.service p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.service ul { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.service li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.service li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--clay); transform: rotate(45deg); border-radius: 2px; }

/* Process */
.process { background: var(--white); position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 10%; right: 10%; border-top: 2px dashed rgba(11, 89, 83, .25); }
.step { text-align: center; position: relative; }
.step .num {
  width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: var(--sand); border: 2px solid var(--teal);
  display: grid; place-items: center; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--teal); position: relative;
}
.step:nth-child(even) .num { border-color: var(--clay); color: var(--clay); }
.step h3 { font-size: 21px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* Why */
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
.why-panel {
  background: var(--teal); color: var(--white); border-radius: 32px; padding: 54px 46px; position: relative; overflow: hidden;
}
.why-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 16px; background: var(--kilim) 0 0 / 32px 16px; }
.why-panel h2 { font-size: clamp(32px, 3.6vw, 46px); }
.why-panel p { color: rgba(255, 255, 255, .82); }
.why-panel .big { font-family: var(--serif); font-size: 96px; line-height: 1; color: var(--gold); margin: 26px 0 4px; }
.why-panel .stars { font-size: 24px; }
.why-list { display: grid; gap: 18px; }
.why-item { display: flex; gap: 20px; padding: 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.why-item .ico { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--sand-2); color: var(--clay); }
.why-item .ico svg { width: 26px; height: 26px; }
.why-item h3 { font-family: var(--sans); font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.why-item p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* CTA band */
.cta-band { padding: 0 0 110px; }
.cta-box {
  background: var(--clay); color: var(--white); border-radius: 32px; padding: 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden;
}
.cta-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border: 40px solid rgba(255, 255, 255, .1); transform: rotate(45deg); }
.cta-box h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 10px; }
.cta-box p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 18px; }
.cta-box .hero-actions { margin: 0; flex: none; position: relative; z-index: 1; }

/* Contact */
.contact { background: var(--ink); color: var(--white); }
.contact .section-head p { color: rgba(255, 255, 255, .7); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; }
.contact-cards { display: grid; gap: 16px; }
.c-card { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--white); text-decoration: none; transition: background .2s ease; }
a.c-card:hover { background: rgba(255, 255, 255, .12); }
.c-card .ico { width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgba(224, 168, 62, .15); color: var(--gold); }
.c-card .ico svg { width: 24px; height: 24px; }
.c-card small { display: block; color: rgba(255, 255, 255, .6); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.c-card b { font-size: 18px; font-weight: 700; }
.map-wrap { border-radius: 24px; overflow: hidden; min-height: 420px; border: 1px solid rgba(255, 255, 255, .1); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.9); }

/* Footer */
.site-footer { background: #081719; color: rgba(255, 255, 255, .7); padding: 36px 0 30px; font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-text small { color: rgba(255, 255, 255, .55); }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Generic content pages */
.page-content { padding: 70px 0 100px; }
.page-content .container { max-width: 820px; }
.page-content h1 { font-size: clamp(34px, 4vw, 50px); }
.entry { background: var(--white); border-radius: var(--radius); padding: 44px; border: 1px solid var(--line); }
.entry + .entry { margin-top: 24px; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .carpet .shine, .float-card, .bubble { animation: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 44px; }
}
@media (max-width: 900px) {
  .main-nav, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .main-nav.is-open {
    display: block; position: absolute; top: 78px; left: 0; right: 0; background: var(--sand); padding: 10px 16px 24px;
    box-shadow: 0 20px 30px -20px rgba(13, 36, 39, .4);
  }
  .main-nav.is-open ul { flex-direction: column; gap: 0; }
  .main-nav.is-open a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .header-cta { display: none; }
  .hero { padding: 40px 0 70px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .section { padding: 76px 0; }
  .services-grid, .steps { grid-template-columns: 1fr; }
  .float-card.one { left: 0; }
  .float-card.two { right: 0; }
  .why-panel { padding: 44px 28px; }
  .why-panel .big { font-size: 76px; }
  .cta-box { padding: 36px 24px; }
  .cta-band { padding-bottom: 76px; }
  .entry { padding: 28px 22px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); box-shadow: 0 -10px 30px -16px rgba(13, 36, 39, .4);
  }
  .mobile-bar .btn { justify-content: center; padding: .8em 1em; }
}
