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

:root {
  --brown: #4f1602;
  --brown-soft: #6b2b12;
  --beige: #ba8c63;
  --text: #363431;
  --muted: #6c6661;
  --cream: #f7f4f0;
  --white: #fff;
  --max: 1180px;
  --shadow: 0 10px 35px rgba(44, 22, 10, .12);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

button { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.narrow { width: min(calc(100% - 40px), 900px); }

.section { padding-block: clamp(56px, 8vw, 105px); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
  padding: 8px max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 18px rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
}

.brand { display: block; width: 145px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }

.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.main-nav a {
  padding: 9px 11px;
  color: var(--brown);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--white); background: var(--brown); }

.menu-toggle { display: none; }

.hero-fullscreen {
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-fullscreen img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}
/* Mobile */



/* Intro */
.intro {
  text-align: center;
  background: linear-gradient(180deg, #fff, #fbfaf9);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--beige);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--brown); line-height: 1.15; }
h1 { margin: 0 auto 32px; max-width: 950px; font-size: clamp(2rem, 5vw, 4rem); text-transform: uppercase; }
h2 { margin: 0 0 24px; font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { margin: 0 0 45px; font-size: clamp(1.5rem, 3vw, 2.35rem); text-align: center; text-transform: uppercase; }
.intro p { margin: 0 auto 18px; max-width: 850px; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.intro strong { color: var(--brown); }

/* Product banners */
.product-section { scroll-margin-top: 76px; }
.photo-banner {
  min-height: clamp(280px, 43vw, 520px);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(28px, 5vw, 55px);
  color: white;
  background-color: #333;
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
}
.photo-banner h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  font-weight: 300;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0,0,0,.5);
}
.banner-laminados { background-image: linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.05)), url("sobralpiso-img/fundo-laminados.jpg"); }
.banner-vinilicos { background-image: linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.05)), url("sobralpiso-img/fundo-vinilicos.jpg"); }
.banner-madeira { background-image: linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.05)), url("sobralpiso-img/fundo5.jpg"); }
.banner-decks { background-image: linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.05)), url("sobralpiso-img/deck-fundo.jpeg"); }

.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 45px 70px;
}
.brands img {
  width: min(100%, 250px);
  max-height: 105px;
  object-fit: contain;
  justify-self: center;
}
.brands-small { grid-template-columns: repeat(2, minmax(0, 250px)); justify-content: center; }

/* Services / gallery */
.services { text-align: center; background: var(--cream); }
.services p:last-child { margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); }

.gallery { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 5 / 7;
  border-radius: 3px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.045); }

.quote {
  text-align: center;
  background: var(--cream);
}
.quote p:not(.eyebrow) { font-size: 1.05rem; }
.email-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 22px;
  color: var(--brown);
  border: 1px solid rgba(79,22,2,.22);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.email-button:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: #fff; }
.email-button img { width: 34px; height: 34px; }

/* Contact */
.contact-section {
  padding-block: clamp(55px, 7vw, 95px);
  background: #fff;
}
.contact-heading { text-align: center; margin-bottom: 40px; }

.slideshow {
  position: relative;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto 50px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eee;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide-prev, .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.38);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}
.slide-prev { left: 18px; }
.slide-next { right: 18px; }
.slide-prev:hover, .slide-next:hover { background: rgba(0,0,0,.65); }

.dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}
.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
}
.dot.is-active { background: #fff; }

.map-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 7;
  min-height: 300px;
}
.map-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }

.address {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 50px auto;
  color: #fff;
  padding: 45px 25px;
  background: linear-gradient(rgba(79,22,2,.84), rgba(79,22,2,.84)), url("sobralpiso-img/fundo5.jpg") center/cover;
  font-style: normal;
  font-size: clamp(.95rem, 1.7vw, 1.1rem);
  text-align: center;
}
.address strong { margin-bottom: 7px; font-size: 1.15em; }
.address a { color: #fff; text-decoration: none; }
.address a:hover { text-decoration: underline; }

.complaints {
  display: block;
  width: min(260px, 70%);
  margin: 0 auto;
  transition: transform .2s;
}
.complaints:hover { transform: translateY(-2px); }

.site-footer {
  padding: 26px 20px;
  color: #555;
  background: #f2f0ee;
  text-align: center;
  font-size: .8rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--brown); text-decoration: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(0,0,0,.9);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-close {
  position: fixed;
  top: 14px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 2.5rem;
}

/* Tablet */
@media (max-width: 900px) {
  .site-header { padding-inline: 20px; }
  .main-nav a { padding-inline: 7px; font-size: .7rem; }
  .brands { gap: 35px 35px; }
}

/* Mobile */
@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }

  .site-header { min-height: 70px; padding-block: 7px; }
  .brand { width: 120px; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle > span:not(.sr-only) {
    width: 24px;
    height: 2px;
    background: var(--brown);
    transition: transform .2s, opacity .2s;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 15px;
    background: #fff;
    box-shadow: 0 12px 18px rgba(0,0,0,.1);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 8px; font-size: .8rem; border-bottom: 1px solid #eee; }

  .container, .narrow { width: min(calc(100% - 30px), var(--max)); }
  .section { padding-block: 48px; }

  .intro h1 { margin-bottom: 25px; }
  .intro p { font-size: .98rem; }

  .photo-banner { min-height: 280px; }
  .photo-banner h2 { font-size: clamp(2.4rem, 13vw, 4.5rem); }

  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 15px; }
  .brands img { max-height: 75px; }
  .brands-small { grid-template-columns: 1fr 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item { border-radius: 2px; }

  .slideshow { margin-bottom: 35px; aspect-ratio: 4 / 3; }
  .slide-prev, .slide-next { width: 38px; height: 38px; font-size: 1.7rem; }
  .slide-prev { left: 10px; }
  .slide-next { right: 10px; }

  .map-wrap { aspect-ratio: 1 / 1; min-height: 0; }
  .address { margin-block: 35px; padding: 35px 18px; }
}

@media (max-width: 430px) {
  .brands { grid-template-columns: 1fr; }
  .brands-small { grid-template-columns: 1fr; }
  .brands img { max-height: 82px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .email-button { max-width: 100%; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
