/* ==============================
   BASE
============================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #fdfdfd;
  color: #1e293b;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==============================
   HEADER / NAVIGATION
============================== */
header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  opacity: 0.5;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { font-weight: 700; font-size: 1.5rem; color: #1e293b; }
.logo img { display: block; max-height: 60px; width: auto; }

.nav-desktop a {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: #222;
  text-decoration: none;
  margin: 0 1.2em;
  position: relative;
  transition: color 0.3s ease;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}
.nav-desktop a:hover { color: #3b82f6; }
.nav-desktop a:hover::after { width: 100%; }

/* Burger button */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.burger-btn span {
  display: block;
  width: 24px; height: 2px;
  background: #1e293b;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  padding: 0.5rem 1.5rem 1rem;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.8rem 0;
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: #3b82f6; }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .burger-btn { display: flex; }
}

/* ==============================
   HERO SECTION
============================== */
.hero {
  position: relative;
  background-image: url(img/banner.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-left: 25px;
}

.subtitle {
  font-size: 1.1rem;
  color: #e0e7ef;
  margin-bottom: 2rem;
  padding-left: 25px;
}

.service-list {
  display: grid;
  gap: 4px 24px;
  list-style-type: disc;
  padding-left: 50px;
  margin: 10px 0 20px;
  font-size: 2rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: #555;
}
.service-list li {
  margin-bottom: 4px;
  line-height: 1.2;
  transition: all 0.3s ease;
}
.service-list li:hover { color: #3b82f6; transform: translateX(5px); }

.hero-text, .hero-image {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.hero.visible .hero-text,
.hero.visible .hero-image { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .hero { min-height: unset; }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2.5rem 1.2rem;
  }
  .hero-text h1 { font-size: 1.7rem; padding-left: 12px; }
  .service-list { font-size: 1.3rem; padding-left: 30px; }
  .subtitle { font-size: 0.95rem; padding-left: 12px; }
  .buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding-left: 12px; }
  .buttons .btn { margin: 0 !important; }
}

/* ==============================
   BUTTONS
============================== */
.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-blue { background: #3b82f6; color: white; margin: 15px; }
.btn-blue:hover { background: #2563eb; }
.btn-dark { background: #334155; color: white; }
.btn-dark:hover { background: #1e293b; }
.buttons .btn { margin-right: 1rem; }

/* ==============================
   SECTIONS BASE
============================== */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
section.visible { opacity: 1; transform: translateY(0); }

/* ==============================
   ABOUT SECTION
============================== */
.about {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.about-top {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, #3b82f6, transparent) 1;
  padding-bottom: 30px;
}

.about-image img {
  width: 100%;
  max-width: 560px;
  border-radius: 6px;
  object-fit: cover;
}

.about-text {
  flex: 1;
  min-width: 260px;
  line-height: 1.6;
  font-size: 1.2rem;
  color: #475569;
}

.about-bottom {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 1rem;
}

.feature { width: 180px; margin: 10px; }
.feature .icon { font-size: 36px; display: block; margin-bottom: 10px; }
.feature .icon img { transition: transform 0.3s ease; width: 48px; height: 48px; object-fit: contain; }
.feature:hover .icon img { transform: scale(1.1) rotate(5deg); }
.feature h4 { margin: 8px 0 4px; color: #1e2a38; }
.feature p { font-size: 14px; color: #777; }

@media (max-width: 768px) {
  .about-top { flex-direction: column; align-items: flex-start; }
  .about-image img { max-width: 100%; }
  .about-text { font-size: 1rem; }
  .about-bottom { justify-content: center; }
}

/* ==============================
   SERVICES SECTION
============================== */
.full-width-gray { background-color: #f4f5f6; width: 100%; }

#services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 20px 0;
}

.service-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s ease;
  width: 300px;
  max-width: 100%;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}
.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #e5e7eb;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 4px 4px 0 0;
}
.service-card:hover img { transform: scale(1.05); }
.service-card > div { padding: 12px 4px 4px; }

@media (max-width: 700px) {
  .service-card { width: 100%; max-width: 480px; }
  .services { gap: 16px; padding: 16px 0; }
}

/* ==============================
   RENOVATION MESSAGE
============================== */
.renovation-message {
  width: 100%;
  background-color: #ffffff;
  padding: 4rem 1.5rem;
}
.message-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.message-main {
  font-size: 1.2rem;
  color: #1e293b;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.message-accent {
  font-size: 1.3rem;
  color: #3b82f6;
  font-weight: 600;
}

@media (max-width: 600px) {
  .renovation-message { padding: 2.5rem 1rem; }
  .message-main { font-size: 1rem; }
  .message-accent { font-size: 1.1rem; }
}

/* ==============================
   WORK TABS SECTION
============================== */
.work-tabs {
  width: 100%;
  background-color: #f9f9f9;
  padding: 4rem 1.5rem;
  box-sizing: border-box;
}

.work-tabs .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
}

.tab {
  padding: 0.8rem 2.5rem;
  background-color: transparent;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  position: relative;
}
.tab:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 30px;
  background-color: #3b82f6;
}
.tab.active { color: #2d4861; font-weight: 700; }
.tab.active::before {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 3px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}
.tab:hover { color: #3b82f6; transform: translateY(-2px); }

.tab-content { display: none; }
.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .tabs { flex-direction: row; flex-wrap: wrap; gap: 4px; justify-content: center; }
  .tab {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    flex: 1 1 auto;
    min-width: 70px;
    text-align: center;
  }
  .tab:not(:last-child)::after { display: none; }
  .tab { border: 1px solid #e2e8f0; border-radius: 4px; }
  .tab.active { background: #3b82f6; color: #fff; border-color: #3b82f6; }
  .tab.active::before { display: none; }
}

/* ==============================
   BEFORE/AFTER SLIDER
============================== */
.interactive-slider-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 70px;
}

.comparison-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  cursor: ew-resize;
}

.image-container {
  position: absolute;
  width: 100%; height: 100%;
}
.image-container img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.before-image { z-index: 1; }
.after-image { z-index: 2; clip-path: inset(0 0 0 50%); }

.label {
  position: absolute;
  top: 24px;
  padding: 8px 20px;
  background: rgba(45,72,97,0.92);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  z-index: 3;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.label.before { left: 24px; }
.label.after  { right: 24px; }

.divider {
  position: absolute;
  top: 0; left: 50%;
  width: 3px; height: 100%;
  background: white;
  z-index: 4;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  border: 3px solid #3b82f6;
  transition: all 0.3s ease;
}
.divider:hover::before {
  box-shadow: 0 6px 24px rgba(59,130,246,0.4);
  border-color: #2563eb;
  transform: translate(-50%, -50%) scale(1.05);
}
.divider::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 26px; height: 18px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 26 18"><path d="M6 5L2 9L6 13M20 5L24 9L20 13" stroke="%233b82f6" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/><circle cx="13" cy="9" r="1.5" fill="%233b82f6"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

.nav-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.95);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.nav-arrow:hover {
  background: white;
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(59,130,246,0.2);
}
.nav-arrow:hover svg { fill: #3b82f6; }
.nav-arrow.left  { left: 0; }
.nav-arrow.right { right: 0; }
.nav-arrow svg { width: 22px; height: 22px; fill: #2d4861; transition: fill 0.3s ease; }

@media (max-width: 768px) {
  .interactive-slider-wrapper { padding: 0 52px; }
  .comparison-slider { height: 300px; border-radius: 10px; }
  .nav-arrow { width: 40px; height: 40px; }
  .nav-arrow svg { width: 18px; height: 18px; }
  .label { font-size: 0.7rem; padding: 5px 10px; }
  .divider::before { width: 36px; height: 36px; border-width: 2px; }
  .divider::after { width: 20px; height: 14px; }
}
@media (max-width: 420px) {
  .interactive-slider-wrapper { padding: 0 44px; }
  .comparison-slider { height: 220px; }
  .nav-arrow { width: 36px; height: 36px; }
}

/* ==============================
   SECTION DIVIDER
============================== */
.section-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 0 auto;
  max-width: 800px;
}

/* ==============================
   CONTACT SECTION
============================== */
.contact {
  background-color: #f1f5f9;
  padding: 5rem 1.5rem;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}
.contact-text p { font-size: 1.1rem; color: #475569; margin-bottom: 2rem; }

.contact-info { margin-top: 2rem; color: #475569; }
.contact-info p { margin: 0.5rem 0; font-weight: 500; color: #334155; }
.contact-info a { color: #2563eb; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #fff;
  color: #1e293b;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  transform: translateY(-2px);
}
.contact-form textarea {
  grid-column: span 2;
  min-height: 120px;
  resize: vertical;
}
.contact-form button {
  grid-column: span 2;
  padding: 0.8rem 1.5rem;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: background 0.3s ease;
}
.contact-form button:hover { background: #2563eb; }

@media (max-width: 768px) {
  .contact-container { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form textarea,
  .contact-form button { grid-column: span 1; }
  .contact { padding: 3rem 1rem; }
}

/* ==============================
   FOOTER
============================== */
footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}
footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
footer nav a {
  margin: 0 0.5rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
footer nav a:hover { color: white; text-decoration: underline; }

/* ==============================
   SECTION TITLES
============================== */
.section-title {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #2d4861 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #3b82f6;
  margin: 12px 0 6px;
}
.section-text { font-weight: 300; margin: 0; }

@media (max-width: 480px) {
  .section-title { font-size: 1.6rem; }
}

/* ==============================
   WHATSAPP WIDGET
============================== */
#wa-btn {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  background: #25D366;
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 18px rgba(37,211,102,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37,211,102,0.6);
}

#wa-popup {
  position: fixed;
  bottom: 94px; right: 16px;
  background: #fff;
  border-radius: 16px;
  width: 280px;
  overflow: hidden;
  z-index: 9998;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: none;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#wa-notify {
  position: fixed;
  bottom: 68px; right: 16px;
  background: #ef4444;
  color: white;
  font-size: 11px; font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.wa-header {
  background: #25D366;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.wa-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-header-text { flex: 1; }
.wa-title { color: white; font-size: 14px; font-weight: 700; }
.wa-subtitle { color: rgba(255,255,255,0.78); font-size: 11px; }

#wa-close {
  position: absolute;
  top: 8px; right: 10px;
  background: transparent; border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  font-size: 20px; line-height: 1;
  padding: 4px 6px;
}
#wa-close:hover { color: white; }

.wa-body { padding: 14px 16px; }
.wa-bubble {
  background: #f0f0f0;
  border-radius: 10px 10px 10px 0;
  padding: 10px 13px;
  font-size: 13px; color: #333; line-height: 1.55;
  margin-bottom: 14px;
}
.wa-cta {
  display: inline-block;
  background: #25D366; color: white;
  text-decoration: none;
  font-size: 13px; font-weight: 700;
  padding: 10px 20px;
  border-radius: 22px;
  transition: background 0.2s;
}
.wa-cta:hover { background: #1db954; }

@media (max-width: 480px) {
  #wa-btn  { width: 60px; height: 60px; bottom: 16px; right: 16px; }
  #wa-popup { left: 12px; right: 12px; width: auto; bottom: 90px; border-radius: 14px; }
  #wa-notify { bottom: 68px; right: 14px; }
}
