/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --c-primary:    #007BC0;
  --c-primary-lt: #72BCF7;
  --c-bosch-red:  #D9000D;
  --c-bosch-dark: #161615;
  --c-white:      #FFFFFF;
  --c-gray-text:  #7B7B7B;
  --c-body-bg:    #E6E6E6;
  --f-family:     'Bosch Sans', sans-serif;
  --grid-margin:  36px;
}

/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'Bosch Sans';
  src: url('../fonts/BoschSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bosch Sans';
  src: url('../fonts/BoschSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bosch Sans';
  src: url('../fonts/BoschSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-family);
  background-color: var(--c-body-bg);
  color: var(--c-bosch-dark);
  min-height: 100vh;
}

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

/* ============================================================
   HEADER — MOBILE
   ============================================================ */
.site-header {
  position: relative;
  z-index: 10;
}

.header-supergrafico {
  line-height: 0;
  overflow: hidden;
}

.header-supergrafico img {
  width: 100%;
  height: 9px;
  object-fit: cover;
  object-position: left center;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 var(--grid-margin);
  background: var(--c-white);
}

.header-tag {
  font-family: var(--f-family);
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  white-space: nowrap;
  line-height: 1;
}

.header-logo {
  height: 32px;
  width: auto;
}

/* ============================================================
   HERO — MOBILE
   ============================================================ */
.hero {
  position: relative;
  height: 452px;
  overflow: hidden;
  background: var(--c-body-bg);
}

.hero-fundo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center top;
}

.hero-produtos {
  position: absolute;
  top: 210px;
  left: 50%;
  transform: translateX(-50%);
  width: 990px;
  height: 242px;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   FORM PESQUISA — MOBILE
   ============================================================ */
.form-pesquisa {
  background: var(--c-body-bg);
  padding: 30px var(--grid-margin) 50px;
}

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

.form-heading-wrap h1 {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-primary);
  margin-bottom: 30px;
}

.form-heading-wrap h1 strong {
  font-weight: 700;
}

.campos-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.campo {
  margin-bottom: 16px;
}

.campo label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 10px;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 358px;
  max-width: 100%;
  height: 45px;
  border: none;
  border-radius: 23px;
  padding: 0 45px 0 20px;
  font-family: var(--f-family);
  font-weight: 500;
  font-size: 16px;
  color: var(--c-primary);
  background-color: var(--c-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23007BC0' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
  outline: none;
}

.select-wrap select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.select-wrap select:focus-visible {
  box-shadow: 0 0 0 2px var(--c-primary);
}

.btn-pesquisar {
  display: block;
  width: 134px;
  height: 42px;
  margin-top: 20px;
  border: none;
  border-radius: 10px;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--f-family);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-pesquisar:hover {
  background: #005f96;
}

.btn-pesquisar:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}

/* ============================================================
   RESULTADOS — MOBILE
   ============================================================ */
.resultados-section {
  background: var(--c-body-bg);
  padding: 10px var(--grid-margin) 40px;
}

.resultados-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-distribuidor {
  position: relative;
  background: var(--c-white);
  border-radius: 10px;
  padding: 20px;
  width: 100%;
}

.card-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
}

.card-nome {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 14px;
  padding-right: 30px;
  line-height: 1.3;
}

.card-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.card-info img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.card-info span {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-gray-text);
  line-height: 1.4;
}

.btn-contato {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0 16px;
  height: 33px;
  border-radius: 5px;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--f-family);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-contato:hover {
  background: #005f96;
}

.btn-contato img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.sem-resultados {
  font-size: 16px;
  font-weight: 400;
  color: var(--c-gray-text);
  text-align: center;
  padding: 40px 0;
}

/* ============================================================
   DESKTOP — @media (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {

  /* Header */
  .header-supergrafico img {
    height: 11px;
  }

  .header-bar {
    height: 107px;
    padding: 0 12rem;
  }

  .header-tag {
    font-size: 15px;
  }

  .header-logo {
    height: 40px;
  }

  /* Hero */
  .hero {
    height: 468px;
  }

  .hero-fundo {
    height: 468px;
    object-position: right center;
  }

  .hero-produtos {
    top: 0;
    left: -243px;
    transform: none;
    width: 1942px;
    height: 473px;
    object-fit: contain !important;
  }

  /* Form */
  .form-pesquisa {
    padding: 40px 0 50px;
  }

  .form-inner {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 12rem;
  }

  .form-heading-wrap {
    flex: 0 0 auto;
    max-width: 300px;
  }

  .form-heading-wrap h1 {
    font-size: 24px;
    margin-bottom: 0;
  }

  .form-fields-wrap {
    flex: 1;
  }

  .form-fields-wrap form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
  }

  .campos-row {
    flex-direction: row;
    gap: 16px;
    flex: 1;
  }

  .campo {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .select-wrap select {
    width: 220px;
  }

  .btn-pesquisar {
    margin-top: 0;
    flex-shrink: 0;
  }

  /* Resultados */
  .resultados-section {
    padding: 20px 12rem 60px;
  }

  .resultados-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1920px;
    margin: 0 auto;
  }

  .card-distribuidor {
    flex: 1 1 calc(25% - 12px);
    min-width: 260px;
    max-width: calc(25% - 12px);
  }
}
