/* ============================================================
   Limestone — Construction & Building Agency
   Plain CSS layered on top of Tailwind (CDN). No @apply here
   because the CDN build does not process @apply in external files.
   ============================================================ */

:root {
  --brand: #F5821F;
  --brand-dark: #E06B0A;
  --ink: #2B2E3A;
  --ink-900: #1E2027;
}

* { -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; }

/* ---------- Buttons ---------- */
.btn-brand {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand); color: #fff;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  padding: .75rem 1.5rem; border-radius: 2px;
  transition: all .3s ease; border: none; cursor: pointer;
  text-decoration: none;
}
.btn-brand:hover {
  filter: brightness(.92);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(245, 130, 31, .55);
}
.btn-white {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; color: var(--ink);
  font-family: 'Poppins', sans-serif; font-weight: 600;
  padding: 1rem 1.75rem; border-radius: 2px;
  transition: all .3s ease; text-decoration: none;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(0,0,0,.25); }

/* ---------- Nav ---------- */
.nav-link {
  display: flex; align-items: center; gap: .25rem;
  color: var(--ink); cursor: pointer;
  transition: color .2s ease; text-decoration: none;
}
.nav-link:hover { color: var(--brand); }
.nav-item { position: relative; }

/* ---------- Hizmetler dropdown (masaüstü) ---------- */
.nav-dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  width: 300px; background: #fff; border-radius: 2px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.18);
  padding: .5rem; opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.cat-row-wrap { position: relative; }
.cat-row {
  display: flex; align-items: center; gap: .625rem; padding: .75rem 1rem; border-radius: 2px;
  color: var(--ink); text-decoration: none; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .9375rem;
  transition: background .2s ease, color .2s ease;
}
.cat-row span { flex: 1; white-space: nowrap; }
.cat-row:hover { background: var(--brand); color: #fff; }
.flyout-panel {
  position: absolute; left: 100%; top: 0; margin-left: .5rem; width: 280px; max-height: 22rem; overflow-y: auto;
  background: #fff; border-radius: 2px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.18);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.cat-row-wrap:hover .flyout-panel,
.cat-row-wrap:focus-within .flyout-panel { opacity: 1; visibility: visible; transform: translateX(0); }
.flyout-panel a {
  display: flex; align-items: center; gap: .625rem; padding: .625rem .75rem; border-radius: 2px;
  color: var(--ink); text-decoration: none; font-size: .875rem; transition: background .2s ease, color .2s ease;
}
.flyout-panel a:hover { background: #FFF4EA; color: var(--brand); }

/* ---------- Hizmetler akordeon (mobil menü) ---------- */
.mobile-accordion summary { list-style: none; }
.mobile-accordion summary::-webkit-details-marker { display: none; }
.mobile-accordion + .mobile-accordion { border-top: 1px solid #f3f4f6; }

/* ---------- Section helpers ---------- */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--brand); font-family: 'Poppins', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; font-size: .875rem;
  margin-bottom: .75rem;
}
.section-title {
  font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: 1.875rem; line-height: 1.12; color: var(--ink);
}
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }

/* ---------- Form ---------- */
.form-input {
  width: 100%; background: #f9fafb; border: 1px solid #e5e7eb;
  padding: 1rem 1.25rem; border-radius: 2px; color: var(--ink);
  transition: all .25s ease; font-family: 'Inter', sans-serif;
}
.form-input::placeholder { color: #9ca3af; }
.form-input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(245,130,31,.18);
}

/* ---------- Footer ---------- */
.footer-title { font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; font-size: 1.125rem; margin-bottom: 1.25rem; }
.footer-link { transition: color .2s ease; text-decoration: none; }
.footer-link:hover { color: var(--brand); }
.social-btn {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; border-radius: 2px;
  transition: background .2s ease; text-decoration: none;
}
.social-btn:hover { background: var(--brand); }

/* ---------- Hero slider ---------- */
.hero-slide { transition: opacity 1s ease-in-out; }
.hero-content > * { opacity: 0; transform: translateY(30px); }
.hero-slide.is-active .hero-content > * { animation: heroIn .8s forwards; }
.hero-slide.is-active .hero-content > *:nth-child(1) { animation-delay: .2s; }
.hero-slide.is-active .hero-content > *:nth-child(2) { animation-delay: .35s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { animation-delay: .5s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { animation-delay: .65s; }
.hero-slide.is-active .hero-content > *:nth-child(5) { animation-delay: .8s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-dot {
  width: 12px; height: 12px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.6); background: transparent;
  transition: all .3s ease; cursor: pointer; padding: 0;
}
.hero-dot.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 4px rgba(245,130,31,.35);
  transform: scale(1.3);
}

/* ---------- Bireysel / Kurumsal segment seçimi (hero altı) ---------- */
.segment-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 1.25rem; text-decoration: none;
  background: rgba(255, 255, 255, .04);
  transition: background .25s ease;
}
.segment-card:hover { background: rgba(245, 130, 31, .14); }
.segment-icon {
  width: 3.25rem; height: 3.25rem; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 2px;
  background: var(--brand); color: #fff;
}

/* ---------- WhatsApp butonu ---------- */
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #25D366; color: #fff;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  padding: .75rem 1.5rem; border-radius: 2px;
  transition: all .3s ease; text-decoration: none;
}
.btn-whatsapp:hover {
  filter: brightness(.94);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(37, 211, 102, .5);
}

/* ---------- Hizmet listesi çipleri (tıklanınca galeri açılır) ---------- */
.svc-chip {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 2px;
  padding: .875rem 1rem; cursor: pointer; text-align: left;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .9375rem;
  color: var(--ink); transition: all .25s ease;
}
.svc-chip:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 20px -12px rgba(245, 130, 31, .55);
  transform: translateY(-2px);
}
.svc-chip-name { flex: 1; }
.svc-chip-count {
  flex-shrink: 0; min-width: 1.5rem; padding: 0 .375rem;
  background: var(--brand); color: #fff; border-radius: 999px;
  font-size: .6875rem; line-height: 1.25rem; text-align: center;
}

/* ---------- Sorumlu iletişim kartı ---------- */
.contact-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 2px; padding: 2rem;
  transition: border-color .25s ease, background .25s ease;
}
.contact-card:hover {
  border-color: rgba(245, 130, 31, .5);
  background: rgba(255, 255, 255, .07);
}

/* ---------- Galeri modal ---------- */
#galleryModal { backdrop-filter: blur(2px); }
.gallery-panel {
  background: #fff; border-radius: 2px; width: 100%; max-width: 64rem;
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
}
.gallery-scroll { overflow-y: auto; padding: 1.25rem; flex: 1; }

/* ---------- Bireysel hizmet segment kartları ---------- */
.seg-tile {
  position: relative; display: block; overflow: hidden;
  border-radius: 2px; text-decoration: none; aspect-ratio: 4 / 5;
}
.seg-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.seg-tile:hover img { transform: scale(1.08); }
.seg-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30, 32, 39, .88) 0%, rgba(30, 32, 39, .25) 55%, transparent 100%);
}
.seg-tile-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1rem .875rem; text-align: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff;
}
.seg-tile-label small {
  display: block; font-weight: 500; font-size: .75rem;
  color: rgba(255, 255, 255, .7); margin-top: .125rem;
}

/* ---------- Progress ring (about) ---------- */
.progress-ring {
  width: 96px; height: 96px; border-radius: 999px;
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, #fff 78%, transparent 79% 100%),
    conic-gradient(var(--brand) calc(var(--val) * 1%), #f0f0f0 0);
}

/* ---------- Skill rings ---------- */
.skill-ring {
  width: 64px; height: 64px; border-radius: 999px;
  display: grid; place-items: center; flex-shrink: 0;
  font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--ink);
  background:
    radial-gradient(closest-side, #fff 76%, transparent 77% 100%),
    conic-gradient(var(--brand) calc(var(--val, 0) * 1%), #eee 0);
  transition: background .8s ease;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Service card ---------- */
.service-card {
  background: #f6f6f6; padding: 2rem; border-radius: 2px;
  transition: all .3s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; background: var(--brand);
  transform: scaleY(0); transform-origin: bottom; transition: transform .4s ease; z-index: 0;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); }
.service-card > * { position: relative; z-index: 1; }
.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-more { color: #fff !important; }

/* ---------- Team card ---------- */
.team-card { position: relative; overflow: hidden; border-radius: 2px; background: #fff; }
.team-card img { transition: transform .5s ease; width: 100%; }
.team-card:hover img { transform: scale(1.08); }
.team-social {
  position: absolute; left: 0; right: 0; bottom: 0;
  transform: translateY(100%); opacity: 0;
  display: flex; justify-content: center; gap: .5rem; padding-bottom: 1rem;
  transition: all .3s ease;
}
.team-card:hover .team-social { transform: translateY(0); opacity: 1; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid #e5e7eb; border-radius: 2px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left; font-family: 'Poppins', sans-serif; font-weight: 600;
  padding: 1rem 1.25rem; transition: all .3s ease; background: #f9fafb; cursor: pointer; border: none;
}
.faq-item.open .faq-q { background: var(--brand); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; color: #6b7280; padding: 0 1.25rem; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 1.25rem 1.25rem; }

/* ---------- Blog card ---------- */
.blog-card { background: #fff; border-radius: 2px; overflow: hidden; box-shadow: 0 4px 20px -10px rgba(0,0,0,.12); transition: all .3s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.22); }
.blog-card .blog-img { overflow: hidden; }
.blog-card img { transition: transform .5s ease; }
.blog-card:hover img { transform: scale(1.06); }

/* ---------- Header ---------- */
#header.scrolled { box-shadow: 0 4px 20px -8px rgba(0,0,0,.15); }

/* ---------- Marka logosu ----------
   İki satırlı logo (başlık + "İşin Piri" sloganı) ortalanmış; slogan
   geniş harf aralığıyla başlığın altına yayılır. */
.brand-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.2;
}
.brand-logo-tagline {
  display: inline-block;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .45em;
  margin-right: -.45em;
}

/* ---------- WhatsApp logosu ----------
   Lucide'in "message-circle" ikonu duz bir konusma balonu; WhatsApp'in
   kendi markasi degil. Butonlarda gercek logo cikmasi icin maske olarak
   gomulu SVG kullaniyoruz. Boylece hem HTML hem JS sablonlarinda tek
   sinifla (wa-logo) ayni ikon elde ediliyor, renk currentColor'dan gelir. */
/* Tailwind CDN kendi stilini bizden SONRA enjekte ediyor; i etiketine
   display:block veriyor. Bu yuzden ozgullugu artiriyoruz (i.wa-logo). */
i.wa-logo,
.wa-logo {
  display: inline-block !important;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M16.001%203.2c-7.06%200-12.8%205.74-12.8%2012.8%200%202.257.59%204.462%201.712%206.406L3.2%2028.8l6.57-1.723a12.74%2012.74%200%200%200%206.23%201.606h.005c7.06%200%2012.8-5.74%2012.8-12.8%200-3.42-1.332-6.635-3.752-9.053A12.72%2012.72%200%200%200%2016.001%203.2zm0%2023.28h-.004a10.63%2010.63%200%200%201-5.415-1.483l-.388-.23-4.03%201.057%201.075-3.93-.253-.403a10.62%2010.62%200%200%201-1.627-5.667c0-5.867%204.775-10.64%2010.646-10.64a10.57%2010.57%200%200%201%207.523%203.12%2010.57%2010.57%200%200%201%203.117%207.526c0%205.868-4.775%2010.643-10.641%2010.643zm5.837-7.968c-.32-.16-1.893-.934-2.187-1.04-.293-.107-.507-.16-.72.16-.213.32-.826%201.04-1.013%201.253-.187.213-.373.24-.693.08-.32-.16-1.35-.498-2.573-1.588-.951-.848-1.593-1.895-1.78-2.215-.187-.32-.02-.493.14-.652.144-.143.32-.373.48-.56.16-.187.213-.32.32-.533.107-.213.053-.4-.027-.56-.08-.16-.72-1.736-.986-2.376-.26-.624-.524-.54-.72-.55l-.613-.011c-.213%200-.56.08-.853.4-.293.32-1.12%201.094-1.12%202.67%200%201.575%201.147%203.097%201.307%203.31.16.213%202.253%203.44%205.46%204.826.763.33%201.358.527%201.822.674.766.244%201.463.21%202.014.127.614-.092%201.893-.774%202.16-1.52.267-.747.267-1.387.187-1.52-.08-.133-.293-.213-.613-.373z%22%2F%3E%3C%2Fsvg%3E");
          mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M16.001%203.2c-7.06%200-12.8%205.74-12.8%2012.8%200%202.257.59%204.462%201.712%206.406L3.2%2028.8l6.57-1.723a12.74%2012.74%200%200%200%206.23%201.606h.005c7.06%200%2012.8-5.74%2012.8-12.8%200-3.42-1.332-6.635-3.752-9.053A12.72%2012.72%200%200%200%2016.001%203.2zm0%2023.28h-.004a10.63%2010.63%200%200%201-5.415-1.483l-.388-.23-4.03%201.057%201.075-3.93-.253-.403a10.62%2010.62%200%200%201-1.627-5.667c0-5.867%204.775-10.64%2010.646-10.64a10.57%2010.57%200%200%201%207.523%203.12%2010.57%2010.57%200%200%201%203.117%207.526c0%205.868-4.775%2010.643-10.641%2010.643zm5.837-7.968c-.32-.16-1.893-.934-2.187-1.04-.293-.107-.507-.16-.72.16-.213.32-.826%201.04-1.013%201.253-.187.213-.373.24-.693.08-.32-.16-1.35-.498-2.573-1.588-.951-.848-1.593-1.895-1.78-2.215-.187-.32-.02-.493.14-.652.144-.143.32-.373.48-.56.16-.187.213-.32.32-.533.107-.213.053-.4-.027-.56-.08-.16-.72-1.736-.986-2.376-.26-.624-.524-.54-.72-.55l-.613-.011c-.213%200-.56.08-.853.4-.293.32-1.12%201.094-1.12%202.67%200%201.575%201.147%203.097%201.307%203.31.16.213%202.253%203.44%205.46%204.826.763.33%201.358.527%201.822.674.766.244%201.463.21%202.014.127.614-.092%201.893-.774%202.16-1.52.267-.747.267-1.387.187-1.52-.08-.133-.293-.213-.613-.373z%22%2F%3E%3C%2Fsvg%3E");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

/* ---------- WhatsApp pulse ---------- */
.animate-pulse-slow { animation: waPulse 2s infinite; }
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Portfolio filter ---------- */
.filter-btn { background: transparent; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; }
.filter-btn:not(.bg-brand):hover { color: var(--brand); }

.portfolio-item.pf-in { animation: pfIn .5s ease forwards; }
@keyframes pfIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
