/* ==========================================================================
   ŞİRİN TESİSAT TADİLAT — Ortak Tasarım Sistemi
   Yön: sıcak, samimi, üç kardeş; kurumsal değil.
   Renk mantığı: bakır (gerçek boru malzemesi) + çam yeşili (güven, kontrast)
   + WhatsApp yeşili (sadece fonksiyonel CTA için, tanınırlık amaçlı).
   ========================================================================== */

:root {
  /* --- Renk Token'ları --- */
  --ink: #2B2019;            /* ana metin — sıcak espresso kahvesi */
  --ink-soft: rgba(43, 32, 25, 0.8);
  --paper: #EDE3D0;          /* zemin — sıcak harç/kağıt tonu */
  --surface: #FAF6EE;        /* kart yüzeyleri */
  --copper: #B5651D;         /* imza rengi — gerçek bakır boru tonu */
  --copper-dark: #8F4E17;    /* hover / küçük metinde okunur bakır */
  --copper-light: #D98A45;   /* koyu zeminde okunur bakır */
  --pine: #2F4F41;           /* ikincil koyu vurgu */
  --pine-light: #3E6656;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --line: rgba(43, 32, 25, 0.14);
  --metal-dark: #6E695F;

  /* --- Tipografi --- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;

  /* --- Ölçek --- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --radius: 14px;
  --container: 1120px;
  --header-h: 72px;
  --mobile-bar-h: 68px;
}

/* --- Reset / Temel --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5vw + 1rem, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-2); }
a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Ekran okuyucular için gizli metin */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Klavye kullanıcıları için "içeriğe geç" linki */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: var(--space-2); }

/* Klavye erişilebilirliği — görünür focus halkası */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Eyebrow / etiket stili --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-dark);
  display: inline-block;
  margin-bottom: var(--space-1);
}

/* --- Butonlar --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }

.btn-whatsapp {
  background: linear-gradient(180deg, #34E884 0%, var(--whatsapp) 45%, var(--whatsapp-dark) 100%);
  color: #0B2E17;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35), inset 0 1px 0 rgba(255,255,255,0.45);
}
.btn-whatsapp:hover { background: linear-gradient(180deg, #34E884 0%, var(--whatsapp-dark) 60%, var(--whatsapp-dark) 100%); }

.btn-call {
  background: var(--copper-dark);
  color: var(--surface);
  box-shadow: 0 6px 18px rgba(143, 78, 23, 0.28);
}
.btn-call:hover { background: #7A4213; }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(237, 227, 208, 0.6);
  color: var(--paper);
}
.btn-outline-light:hover { background: var(--paper); color: var(--pine); }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* Bulanık arka plan bir sözde-elemanda duruyor. backdrop-filter doğrudan
   header'a verilirse, içindeki position:fixed mobil menüyü header'ın
   yüksekliğine hapsediyor (menü tam ekran açılamıyordu). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(237, 227, 208, 0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-h);
  padding: 0.75rem var(--space-3);
  max-width: calc(var(--container) + 2 * var(--space-3));
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo span { color: var(--copper); }

.nav-links {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-color: var(--copper);
}
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--copper); }
.header-phone:hover { color: var(--copper-dark); }

/* Kapatma butonu ve hamburger sadece mobilde */
.nav-toggle, .nav-close { display: none; }

.nav-toggle {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .header-phone { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .logo { font-size: 1.2rem; }
  .logo-mark { width: 26px; height: 26px; }
  .nav-toggle { display: flex; }
  .header-actions { display: none; }
  nav[aria-label="Ana menü"] {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    z-index: 100;
  }
  nav[aria-label="Ana menü"].is-open {
    opacity: 1;
    visibility: visible;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
  .nav-links a { font-family: var(--font-display); font-size: 1.7rem; }
  .nav-close {
    position: absolute;
    top: 10px; right: 12px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ink);
  }
  .nav-close svg { width: 26px; height: 26px; }
  .nav-contact { display: grid; gap: var(--space-1); width: min(320px, 85vw); }
}
@media (min-width: 721px) {
  .nav-contact { display: none; }
}

/* --- Mobil alt eylem çubuğu: Ara + WhatsApp her zaman parmağın altında --- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(250, 246, 238, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(43, 32, 25, 0.1);
  }
  .mobile-bar .btn { padding: 0.75rem 0.8rem; font-size: 0.98rem; }
  .mobile-bar .btn:hover { transform: none; }
  body { padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom)); }
  .menu-open .mobile-bar { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: var(--space-6) 0 var(--space-4);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero h1 { max-width: 15ch; }
.hero-lede {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero-badges li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-badges svg { width: 18px; height: 18px; color: var(--pine); }

.hero-art {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 101, 29, 0.16), rgba(181, 101, 29, 0) 70%);
}
.hero-art img { position: relative; width: 100%; height: auto; }

@media (max-width: 859px) {
  .hero { padding-top: var(--space-4); }
  .hero-art { max-width: 300px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* İmza öge: bakır "boru hattı" çizgisi */
.pipe-divider {
  display: block;
  width: 100%;
  height: 48px;
  color: var(--copper);
}

/* --- Kısa "Biz Kimiz" şeridi --- */
.intro-strip {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) 0;
}
.intro-strip .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.intro-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: var(--copper-dark);
}
.intro-stat span { font-size: 0.92rem; color: rgba(43,32,25,0.75); }

@media (max-width: 720px) {
  .intro-strip .container { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* --- Bölümler --- */
.section { padding: var(--space-5) 0; }
.section-head { max-width: 60ch; margin-bottom: var(--space-4); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--copper); box-shadow: 0 12px 28px rgba(43,32,25,0.08); }
.service-card svg { width: 34px; height: 34px; color: var(--copper); margin-bottom: var(--space-2); }
.service-card h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.service-card p { font-size: 0.94rem; color: rgba(43,32,25,0.78); margin: 0; }

.section-more { margin-top: var(--space-4); }

/* --- Neden Biz --- */
.why-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; gap: var(--space-3); } }
.why-item { border-top: 3px solid var(--copper); padding-top: var(--space-2); }
.why-item h3 { margin-bottom: 0.4rem; }
.why-item p { margin: 0; color: var(--ink-soft); }

/* --- Koyu CTA bandı --- */
.cta-band {
  background: var(--pine);
  color: var(--paper);
  padding: var(--space-5) 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(237,227,208,0.85); max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-4) 0 var(--space-3);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(237,227,208,0.15);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-3); } }
.footer-grid h2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper-light);
  margin: 0 0 var(--space-1);
}
.footer-grid a { text-decoration: none; opacity: 0.85; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-note { opacity: 0.7; font-size: 0.85rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: var(--space-2);
  opacity: 0.65;
  font-size: 0.85rem;
}

/* --- Sayfa üstü mini başlık (iç sayfalar için) --- */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--space-5) 0 var(--space-4);
}
.page-hero p { max-width: 55ch; color: rgba(43,32,25,0.78); margin: 0; }

/* --- Hizmetler detay listesi (iç sayfa) --- */
.service-detail-list { display: grid; }
.service-detail {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 2px dotted rgba(181, 101, 29, 0.35);
}
.service-detail:last-child { border-bottom: none; }
.service-detail svg { width: 40px; height: 40px; flex-shrink: 0; color: var(--copper); }
.service-detail h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.service-detail p { margin: 0; color: rgba(43,32,25,0.8); max-width: 60ch; }
@media (max-width: 520px) {
  .service-detail { gap: var(--space-2); }
  .service-detail svg { width: 32px; height: 32px; }
}

.closing-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.closing-note p { margin: 0; max-width: 46ch; }

/* --- İletişim --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4);
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}
@media (max-width: 520px) { .contact-card { padding: var(--space-3); } }
.contact-card h2 { font-size: 1.3rem; }
.info-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.info-row:last-of-type { border-bottom: none; }
.info-row svg { width: 20px; height: 20px; color: var(--copper); flex-shrink: 0; }
.info-row a { font-weight: 600; text-decoration: none; }
.info-row a:hover { color: var(--copper-dark); text-decoration: underline; }
.contact-actions { display: grid; gap: var(--space-1); margin-top: var(--space-3); }

.steps-title { font-size: 1.3rem; margin-bottom: var(--space-3); }
.steps-list { display: grid; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: var(--space-2); align-items: flex-start; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--copper-dark);
  border: 2px solid var(--copper);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step h3 { margin-bottom: 0.2rem; font-size: 1.05rem; }
.step p { margin: 0; color: rgba(43,32,25,0.78); font-size: 0.95rem; }

/* --- 404 --- */
.notfound { text-align: center; padding: var(--space-6) 0; }
.notfound p { max-width: 44ch; margin-left: auto; margin-right: auto; color: var(--ink-soft); }
.notfound .hero-actions { justify-content: center; }
