/* Lead Gen Template Blocks CSS */

/* ========== HERO BLOCK ========== */
.wp-block-lead-gen-hero {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 600px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.wp-block-lead-gen-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.5) 0%, transparent 100%);
  z-index: 0;
}

.lead-gen-hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 600px;
  animation: slideInLeft 0.8s ease-out;
}

.lead-gen-hero-headline {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.lead-gen-hero-subheading {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #e0e0e0;
  line-height: 1.6;
}

.lead-gen-hero-button {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  transition: all 0.3s ease;
  text-decoration: none;
}

.lead-gen-hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========== SERVICE CARDS BLOCK ========== */
.wp-block-lead-gen-service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.lead-gen-service-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.lead-gen-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.lead-gen-service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.lead-gen-service-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.lead-gen-service-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

/* ========== CONTACT FOOTER BLOCK ========== */
.wp-block-lead-gen-contact-footer {
  padding: 4rem 2rem;
  color: white;
  margin-top: 4rem;
}

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

.lead-gen-footer-contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.lead-gen-footer-contact h3 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.lead-gen-footer-info {
  margin-bottom: 1.5rem;
}

.lead-gen-footer-info label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.3rem;
}

.lead-gen-footer-info p {
  color: #e0e0e0;
  margin: 0;
}

.lead-gen-footer-info a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.lead-gen-footer-info a:hover {
  text-decoration: underline;
}

.lead-gen-footer-hours {
  margin-top: 2rem;
}

.lead-gen-footer-hours h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lead-gen-footer-hours p {
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.lead-gen-footer-map {
  position: relative;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  min-height: 400px;
}

.lead-gen-footer-map iframe {
  width: 100%;
  height: 100%;
}

/* ========== GOOGLE PHOTOS GALLERY BLOCK ========== */
.wp-block-lead-gen-google-photos-gallery {
  margin: 2rem 0;
}

.wp-block-lead-gen-google-photos-gallery h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.lead-gen-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.lead-gen-gallery-item {
  position: relative;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out;
}

.lead-gen-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.lead-gen-gallery-item:hover img {
  transform: scale(1.1);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .lead-gen-footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lead-gen-footer-map {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .wp-block-lead-gen-hero {
    min-height: 400px;
    padding: 2rem;
  }

  .lead-gen-hero-headline {
    font-size: 2rem;
  }

  .lead-gen-hero-subheading {
    font-size: 1rem;
  }

  .lead-gen-hero-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .wp-block-lead-gen-service-cards {
    grid-template-columns: 1fr;
  }

  .lead-gen-footer-container {
    grid-template-columns: 1fr;
  }

  .lead-gen-gallery-grid {
    grid-template-columns: 1fr;
  }

  .lead-gen-gallery-item {
    height: 250px;
  }
}

/* ========== FULL WIDTH FIX ========== */
.wp-block-lead-gen-hero.alignfull,
.wp-block-lead-gen-contact-footer.alignfull {
  margin-left: -999px;
  margin-right: -999px;
  padding-left: calc(999px + 2rem);
  padding-right: calc(999px + 2rem);
}

/* Override WordPress content width constraints */
.wp-block-lead-gen-hero,
.wp-block-lead-gen-contact-footer {
  max-width: 100%;
}

/* Gutenberg editor full width support */
.block-editor-block-list__block[data-type="lead-gen/hero"].is-selected,
.block-editor-block-list__block[data-type="lead-gen/contact-footer"].is-selected {
  max-width: 100%;
}
