/* Root variables for colors */
:root {
  --primary: #e63946;
  --secondary: #457b9d;
  --light: #f1faee;
  --dark: #1d3557;
  --text: #333;
}

* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.6;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.navbar .nav-links a {
  margin-left: 1rem;
  color: #fff;
  font-weight: 500;
}

.navbar .nav-links a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  height: 100vh;
  background: url('../images/hero.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero .content {
  z-index: 1;
  max-width: 800px;
  padding: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero .buttons .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  margin: 0.25rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
}

/* Promo ticker */
.promo-ticker {
  background: var(--primary);
  color: #fff;
  overflow: hidden;
}

.promo-ticker p {
  white-space: nowrap;
  animation: scrollLeft 15s linear infinite;
  padding: 0.5rem;
  margin: 0;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

section {
  padding: 3rem 1rem;
}

.services h2,
.testimonials h2,
.before-after h2,
.faq h2,
.map h2,
.gallery h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 280px;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: perspective(500px) rotateY(5deg) scale(1.02);
}

.service-card h3 {
  margin-top: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Sticky call button */
.call-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

/* Testimonials */
.testimonials .testimonial-item {
  display: none;
}

.testimonials .testimonial-item.active {
  display: block;
}

.testimonials .testimonial-item p {
  font-style: italic;
}

/* Before and after slider */
.before-after {
  text-align: center;
}

.before-after .wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.before-after .wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.before-after .wrapper .after-img {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.before-after .wrapper .after-img img {
  display: block;
  width: 100%;
  height: auto;
}

.before-after input[type="range"] {
  width: 100%;
  margin-top: 1rem;
}

/* FAQ accordion */
.faq .faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.faq .faq-item h3 {
  margin: 0;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem 0;
  color: var(--dark);
}

.faq .faq-item .answer {
  display: none;
  padding-bottom: 1rem;
  font-size: 0.9rem;
}

/* Map */
.map iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .service-card {
    width: 100%;
  }
}