/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #f9f9f6; color: #222; line-height: 1.6; }
img.responsive-img, video { width: 50%; height: auto; display: block; border-radius: 8px; }

/* Header/Footer */
.floating-header, .floating-footer {
  position: fixed; left: 0; right: 0; background: #fff;
  z-index: 1000; text-align: center;
}
.header-flex, .floating-footer { padding: 0.8rem; }
.header-flex { padding-bottom: 0; }
header .header-flex { display: flex; align-items: center; justify-content: center; gap: 1rem; }
header .license { font-size: 0.9rem; color: #555; font-weight: bold; margin-top:0.3rem; }
nav button {
  margin: 0.6rem;
  margin-top: 0.4rem;
  margin-bottom: 0.2rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #375a7f;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
nav button:hover { background: #2a4070; }
.floating-header { top: 0; padding-bottom: 0.5rem; box-shadow: 0 -4px 10px 0 black; }
footer { font-size:0.9rem }
.floating-footer { color: #555; bottom: 0; font-weight: bold; box-shadow: 0 4px 10px 0 black; }
h1 { line-height: 1; }
h2, h3, h4, .respect { text-align: center; }
.respect { font-weight: bold; font-size: 1rem; text-align: center; }

/* Main content spacing */
main { padding: 1rem; margin-top: 130px; margin-bottom: 60px; }

/* Top images row */
.top-img-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; margin-bottom: 1rem; }
@media (max-width: 900px) { .top-img-row { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { padding-top: 0.4rem; padding-bottom: 1rem; }
.gallery-row { display: flex; flex-wrap: wrap; /*gap: 0.5rem;*/ gap: 1rem; justify-content: center;}
/*.gallery-thumb img { max-width: 180px; height: 92%; cursor: pointer; border-radius: 6px; box-shadow: 3px 3px 9px 0px black; }*/
.gallery-thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 150px;
  overflow: hidden;
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 3px 3px 9px 0px black;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
  display: block;
  cursor: pointer;
}

.gallery-fullscreen {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; justify-content: center; align-items: center; z-index: 2000;
}
.gallery-fullscreen img { max-width: 90vw; max-height: 80vh; }
.gallery-close {
  position: absolute; top: 20px; right: 20px; background: #fff; border: none; font-size: 2rem; border-radius: 50%;
  width: 48px; height: 48px; cursor: pointer;
}

/* Testimonials */
.testimonials { margin: 1rem 0; }
.testimonials blockquote { background: #eef; padding: 1rem; border-left: 4px solid #375a7f; margin-bottom: 0.8rem; }
.testimonials footer { margin-top: 0.5rem; font-weight: bold; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.8rem; margin: 1rem 0;}
.feature { overflow: hidden; position: relative; min-height: 380px; background-size: cover; background-position: center; border-radius: 8px; }
.feature-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.5); color: #fff; padding: 0.8rem; }
.feature.fgarage { background-position-y: -140px; }
.feature { background-position-y: 0; }

/* Steps list */
.job-list { list-style: disc inside; margin: 1rem 0; }
.job-list li { margin-bottom: 0.5rem; }

/* About */
video { width: 70%; margin: 0px auto; background-color: #c4c4c4; }
.about-video p { width: 70%; text-align: center; margin: 0px auto; }
.about-video { margin-bottom: 1rem; }

/* Before/After */
.before-after-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.before-after-row img { flex: 1; }

/* Kitchen gallery */
.kitchen-gallery { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 0 0 1rem 0; }
.arrow { margin: 0 1rem; font-size: 1.5rem; padding: 0.2rem 0.6rem; background: #375a7f; color: white; border: none; cursor: pointer; border-radius: 4px; }
#kitchen-title { display: inline-block; text-align: center; }
.kitchen-gallery .gallery-main { text-align: center; max-width: 600px; }
.kitchen-gallery .gallery-desc { margin-top: 0.5rem; }
section { text-align: center; }

/* Contact and form */
.contact-info { margin: 1rem 0; }
.contact-info h2 { margin-bottom: 0.5rem; }
.quote-form { background: #fff; padding: 1rem; margin: 1rem auto; border-radius: 8px; max-width: 500px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.quote-form h2 { margin-bottom: 0.8rem; }
.quote-form input, .quote-form textarea { width: 100%; padding: 0.6rem; margin-bottom: 0.6rem; border: 1px solid #ccc; border-radius: 4px; }
.quote-form button { background: #375a7f; color: #fff; padding: 0.7rem; border: none; border-radius: 4px; cursor: pointer; }
.quote-form button:hover { background: #2a4070; }
.contact-info p { font-weight: bold; }

/* Mobile adjustments */
@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
  .before-after-row { flex-direction: column; }
  .floating-header { padding: 0; }
  .floating-footer { font-size: 0.8rem; padding: 0.5rem; }
  nav button { margin: 0.2rem; padding: 0.4rem 0.35rem; margin-top: 0; }
  nav button:first-child { margin-left: 0; }
  nav button:last-child { margin-right: 0; }
  nav { margin-top: 0.4rem; }
  .gallery-thumb { max-width: 90px; }
  .gallery-thumb img { max-width: 120px; }
  #kitchen-title { font-size: 1rem; }
  main { margin-top: 110px; }
  .feature { background-position-x: 0px; }
  .feature.fgarage { background-position-y: -80px; }
  video { width: 98%; }
}
