/* =========================================================
   Melesini Contractors - style.css
   Mobile-first. Ngjyrat: e bardha, e zeza, e kuqe (theks)
   ========================================================= */

:root {
  --red: #c8102e;
  --red-dark: #9d0c24;
  --black: #111;
  --white: #fff;
  --grey: #f5f5f5;
  --muted: #666;
  --radius: 14px;
  --max: 1100px;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(var(--max), 92%); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- Intro (makina) ---------- */
#intro {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.5s;
}
#intro.hide { opacity: 0; pointer-events: none; }
.no-intro #intro { display: none; }

.intro-car {
  position: absolute;
  top: 50%;
  left: 0;
  width: min(80vw, 460px);
  height: auto;
  transform: translate(-100%, -50%);
  animation: drive 4s linear forwards;
}
@keyframes drive {
  0%   { transform: translate(-100%, -50%); animation-timing-function: ease-out; }
  35%  { transform: translate(calc(50vw - 50%), -50%); }
  60%  { transform: translate(calc(50vw - 50%), -50%); animation-timing-function: ease-in; }
  100% { transform: translate(100vw, -50%); }
}
#intro-skip {
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 8px 16px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  #intro { display: none; }
}

/* ---------- Header + menu ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid #eee;
  z-index: 100;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo, .menu-btn { position: relative; z-index: 2; }
.logo {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 1.25rem;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo span {
  font-weight: 500;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  color: var(--red);
  text-transform: uppercase;
  margin-top: 2px;
}

.menu-btn {
  width: 44px; height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.menu-btn span {
  display: block;
  width: 26px; height: 2px;
  background: var(--black);
  transition: transform 0.35s, background 0.35s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); background: var(--red); }
.menu-btn.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); background: var(--red); }

.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  gap: 8px;
  clip-path: circle(0 at calc(100% - 40px) 32px);
  pointer-events: none;
  transition: clip-path 0.6s ease;
}
.nav.open {
  clip-path: circle(150% at calc(100% - 40px) 32px);
  pointer-events: auto;
}
.nav a {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  padding: 6px 0;
  width: fit-content;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s, transform 0.4s, color 0.2s;
}
.nav.open a { opacity: 1; transform: none; }
.nav.open a:nth-child(1) { transition-delay: 0.20s; }
.nav.open a:nth-child(2) { transition-delay: 0.27s; }
.nav.open a:nth-child(3) { transition-delay: 0.34s; }
.nav.open a:nth-child(4) { transition-delay: 0.41s; }
.nav.open a:nth-child(5) { transition-delay: 0.48s; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--red); }
.nav .nav-cta {
  margin-top: 18px;
  font-size: 1.1rem;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
}
.nav .nav-cta::after { display: none; }

@media (min-width: 860px) {
  .menu-btn { display: none; }
  .nav {
    position: static;
    clip-path: none;
    pointer-events: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 30px;
    background: none;
  }
  .nav a { font-size: 0.95rem; font-weight: 500; opacity: 1; transform: none; }
  .nav .nav-cta { margin-top: 0; padding: 10px 22px; font-size: 0.9rem; }
  .nav .nav-cta:hover { background: var(--red-dark); }
}

/* ---------- Butona & tekste ---------- */
.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: currentColor; }

.section { padding: 64px 0; }
.section-grey { background: var(--grey); }
.section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.2; margin-bottom: 8px; }
.section-sub { color: var(--muted); max-width: 560px; margin-bottom: 32px; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #111 0%, #2b0a10 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.25;
}
.hero-inner { position: relative; z-index: 2; padding: 48px 0; }
.hero h1 { font-size: clamp(2.3rem, 9vw, 4.4rem); line-height: 1.08; margin-bottom: 18px; }
.hero-text { max-width: 520px; color: #ddd; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero: tekstet me shkëlqim (shine) ---------- */
.hero .eyebrow {
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.3;
  margin-bottom: 6px;
  background: linear-gradient(110deg, #ff4d5e 0%, #ff4d5e 40%, #ffffff 50%, #ff4d5e 60%, #ff4d5e 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 3.5s ease-in-out infinite;
}
.hero .eyebrow + .eyebrow { margin-bottom: 18px; animation-delay: 0.4s; }
@keyframes shine {
  0%   { background-position: 100% 0; }
  60%  { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow { animation: none; background-position: 100% 0; }
}

/* ---------- Services (2 kolona) ---------- */
@media (min-width: 800px) {
  .services-two { grid-template-columns: repeat(2, 1fr); }
}
.service .values { margin-top: 14px; gap: 8px; }
.service .values li { color: #333; font-size: 0.95rem; }

/* ---------- Craftsmanship + CTA ---------- */
.trust-text { max-width: 680px; color: #333; margin-bottom: 20px; }
.trust-tagline { font-weight: 800; letter-spacing: 0.04em; color: var(--red); font-size: 1.1rem; }
.cta-band p { max-width: 560px; margin: 0 auto 24px; opacity: 0.95; }

/* ---------- Services ---------- */
.services { display: grid; gap: 18px; }
.service {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #eee;
}
.service .num { color: var(--red); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.1em; }
.service h3 { margin: 8px 0; }
.service p { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 800px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Projekte / karta ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.card-body { padding: 18px 20px 22px; }
.card-cat {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
}
.card-body h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.card-body p:last-child { color: var(--muted); font-size: 0.95rem; }

.single img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Slider para / pas */
.compare {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  user-select: none;
  background: #ddd;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
}
.compare-handle span {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.compare-handle span::before,
.compare-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0; height: 0;
  border: 6px solid transparent;
  transform: translateY(-50%);
}
.compare-handle span::before { left: 6px;  border-right-color: var(--red); }
.compare-handle span::after  { right: 6px; border-left-color: var(--red); }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.tag {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.75);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.tag-before { left: 12px; }
.tag-after  { right: 12px; background: rgba(200, 16, 46, 0.9); }

.more-link { margin-top: 32px; text-align: center; }

/* ---------- Filtrat ---------- */
.filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 24px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  border: 1.5px solid #ddd;
  background: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  font: inherit;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--black); }
.chip.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- Faqe të brendshme ---------- */
.page-hero { background: var(--grey); padding: 48px 0 32px; }
.page-hero h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.15; }
.page-hero p { color: var(--muted); max-width: 560px; margin-top: 8px; }

/* About */
.about-grid { display: grid; gap: 32px; }
/* .about-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; } */
.about-text p { margin-bottom: 16px; color: #333; }
.about-text h2 { margin-bottom: 14px; }
@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1fr 1.2fr; align-items: center; gap: 56px; }
}
.values { display: grid; gap: 14px; margin-top: 8px; }
.values li { padding-left: 22px; position: relative; }
.values li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 10px; height: 2px;
  background: var(--red);
}

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
.contact-list li { border-bottom: 1px solid #eee; }
.contact-list a { display: block; padding: 16px 0; transition: color 0.2s; }
.contact-list a:hover { color: var(--red); }
.contact-list small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}
.contact-list strong { font-size: 1.1rem; }

.form { display: grid; gap: 14px; }
.form label { font-size: 0.85rem; font-weight: 600; display: grid; gap: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font: inherit;
  font-size: 16px; /* që iPhone të mos zmadhojë faqen */
  background: var(--white);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form .btn { cursor: pointer; font: inherit; font-weight: 600; }
.form-status { min-height: 1.4em; font-size: 0.95rem; }
.form-status.ok  { color: #1a7f37; }
.form-status.err { color: var(--red); }

/* CTA */
.cta-band { background: var(--red); color: var(--white); text-align: center; padding: 56px 0; }
.cta-band h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); margin-bottom: 18px; }
.cta-band .btn { background: var(--white); color: var(--red); border-color: var(--white); }
.cta-band .btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #bbb; padding: 40px 0 90px; font-size: 0.9rem; }
.footer-inner { display: grid; gap: 24px; }
.site-footer .logo { color: var(--white); margin-bottom: 8px; }
.site-footer a:hover { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.copyright { margin-top: 24px; font-size: 0.8rem; color: #777; }
@media (min-width: 860px) {
  .site-footer { padding-bottom: 40px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Butoni Call (vetëm mobile) ---------- */
.call-fab {
  position: fixed;
  right: 16px; bottom: 16px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.45);
  z-index: 90;
}
.call-fab svg { width: 26px; height: 26px; fill: var(--white); }
@media (min-width: 860px) { .call-fab { display: none; } }
/* ---------- Hero me foto + zoom i ngadaltë ---------- */
.hero::after { display: none; }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenburns 24s ease-out forwards;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.78) 100%);
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tranzicion midis faqeve ---------- */
@view-transition { navigation: auto; }

/* ---------- Numëratorë ---------- */
.stats { padding: 36px 0; border-bottom: 1px solid #eee; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: center; }
.stat-num {
  display: block;
  font-size: clamp(1.8rem, 8vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--red);
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Si punojmë ---------- */
.steps {
  position: relative;
  list-style: none;
  max-width: 640px;
  padding-left: 60px;
  display: grid;
  gap: 32px;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  width: 2px;
}
.steps::before { bottom: 20px; background: #e5e5e5; }
.steps::after {
  height: calc((100% - 40px) * var(--progress, 0));
  background: var(--red);
}
.step { position: relative; z-index: 1; }
.step-num {
  position: absolute;
  left: -60px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--white);
  border: 2px solid #ddd;
  color: var(--muted);
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.step.active .step-num { background: var(--red); border-color: var(--red); color: var(--white); }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); }

/* ---------- Shirit shërbimesh (marquee) ---------- */
.marquee { overflow: hidden; background: var(--black); color: var(--white); padding: 18px 0; white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  padding-right: 44px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.marquee-group span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
/* ---------- About: mesazhi nga pronari (chat) ---------- */
.about-text h3 { margin: 28px 0 12px; }
.chat {
  max-width: 420px;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
}
.chat-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #e5e5e5;
  object-fit: contain;
  padding: 5px;
}
.chat-head strong { display: block; font-size: 0.95rem; }
.chat-head span { font-size: 0.78rem; color: var(--muted); }
.chat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 290px;
  padding: 18px;
}
.chat-time { align-self: center; margin-bottom: 6px; font-size: 0.72rem; color: var(--muted); }
.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 20px 20px 20px 6px;
  background: #e9e9eb;
  color: var(--black);
  font-size: 0.98rem;
  line-height: 1.4;
}
.bubble-typing { display: none; gap: 5px; padding: 14px 16px; }
.bubble-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9a9a9f;
  animation: blink 1s infinite;
}
.bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.chat.ready .bubble { display: none; }
.chat.ready .bubble.show { display: block; animation: pop 0.35s ease both; }
.chat.ready .bubble-typing.show { display: flex; animation: none; }

.chat-reply {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 14px 14px;
  padding: 8px 8px 8px 16px;
  border: 1px solid #ddd;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}
.chat-reply span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}
@media (min-width: 800px) {
  .about-grid { align-items: start; }
  .about-chat { position: sticky; top: calc(var(--header-h) + 24px); }
}
/* ---------- Ngarkimi i butë i fotove ---------- */
.compare,
.single {
  background: linear-gradient(100deg, #e8e8e8 30%, #f4f4f4 50%, #e8e8e8 70%);
  background-size: 200% 100%;
  animation: skeleton 1.4s linear infinite;
}
@keyframes skeleton { to { background-position: -200% 0; } }
.card.loaded .compare,
.card.loaded .single { animation: none; }

.card img {
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: img-fallback 0s 4s forwards;
}
@keyframes img-fallback { to { opacity: 1; } }
.card img.loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .compare, .single { animation: none; }
  .card img { transition: none; }
}
.tag { transition: opacity 0.25s ease; }
.compare.hide-before .tag-before,
.compare.hide-after .tag-after { opacity: 0; }