/* =============================================
   Vancouver Tile Pros — Site Fixes
   ============================================= */

html {
  scroll-behavior: smooth;
}

/* =============================================
   Form Styles
   ============================================= */

.gform_wrapper {
  font-family: "Roboto", sans-serif;
}

.gform_wrapper form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gform_wrapper .gform_fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gform_wrapper .gfield--type-name {
  display: flex !important;
  gap: 12px;
}

.gform_wrapper .gfield--type-name > div {
  flex: 1;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: "Roboto", sans-serif;
  color: #111111;
  background: #ffffff;
  border: 1px solid #d2d6dc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper textarea:focus {
  border-color: #c02b0a;
  box-shadow: 0 0 0 3px rgba(192, 43, 10, 0.15);
}

.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
  color: #999;
  font-size: 15px;
  font-family: "Roboto", sans-serif;
}

.gform_wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

.gform_footer {
  margin-top: 16px !important;
  padding: 0 !important;
}

.gform_wrapper .gform_button {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Roboto", sans-serif;
  color: #ffffff;
  background: #c02b0a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  letter-spacing: 0.3px;
}

.gform_wrapper .gform_button:hover {
  background: #9a2108;
}

.gform_wrapper .gform_button:active {
  transform: scale(0.98);
}

.gform_wrapper .gform_button:disabled {
  background: #d98978;
  cursor: not-allowed;
}

.form-message {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  border-radius: 4px !important;
}

@media (max-width: 767px) {
  .gform_wrapper .gfield--type-name {
    flex-direction: column !important;
    gap: 12px;
  }

  .gform_wrapper input[type="text"],
  .gform_wrapper input[type="email"],
  .gform_wrapper input[type="tel"],
  .gform_wrapper textarea {
    padding: 11px 14px;
    font-size: 16px;
  }

  .gform_wrapper .gform_button {
    width: 100%;
    text-align: center;
  }

  /* Homepage about section: show full head on mobile */
  .elementor-element-7153346b > .elementor-widget-wrap,
  .elementor-element-7153346b > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-position: top center !important;
    min-height: 420px;
  }
}

/* About page: Before/After images — natural height, no stretch */
.elementor-element-daa3bed .elementor-element-9765dc9 .elementor-widget-image,
.elementor-element-daa3bed .elementor-element-9765dc9 .elementor-widget-image .elementor-widget-container {
  height: auto !important;
}
.elementor-element-daa3bed .elementor-element-9765dc9 .elementor-widget-image img {
  height: auto !important;
  max-height: 350px;
  object-fit: cover;
  width: 100%;
}

/* Project page galleries (e-gallery) */
.elementor-gallery__container,
.e-gallery-container.e-gallery-justified {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  position: relative !important;
  flex-wrap: unset !important;
}
@media (max-width: 1024px) {
  .elementor-gallery__container,
  .e-gallery-container.e-gallery-justified {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 767px) {
  .elementor-gallery__container,
  .e-gallery-container.e-gallery-justified {
    grid-template-columns: 1fr !important;
  }
}
.e-gallery-item,
.elementor-gallery-item {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  opacity: 1 !important;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  flex-grow: unset !important;
  flex-shrink: unset !important;
}
.e-gallery-image,
.elementor-gallery-item__image {
  width: 100% !important;
  padding-bottom: 75% !important;
  background-size: cover !important;
  background-position: center !important;
}
.e-gallery-item:hover .elementor-gallery-item__overlay {
  opacity: 0.3;
}
.elementor-gallery-item__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Gallery lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 999999;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox.active { display: flex; }
.gallery-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  height: auto !important;
}
.gallery-lightbox .lb-close {
  position: absolute;
  top: 20px; right: 25px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
}
.gallery-lightbox .lb-close:hover { opacity: 1; }
.gallery-lightbox .lb-prev,
.gallery-lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
  background: rgba(0,0,0,0.4);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  user-select: none;
}
.gallery-lightbox .lb-prev:hover,
.gallery-lightbox .lb-next:hover { opacity: 1; background: rgba(0,0,0,0.6); }
.gallery-lightbox .lb-prev { left: 20px; }
.gallery-lightbox .lb-next { right: 20px; }
