/* =========================
   ODDITY STUDIO — FONTES
========================= */

@font-face {
  font-family: "Bradstone Parker";
  src: url("./fonts/Bradstone-Parker Script Limited Free Version.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Acidic";
  src: url("./fonts/Acidic.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: "Inter", Arial, sans-serif;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

a {
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   CABEÇALHO — DESKTOP
========================= */

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(120px, 1fr);
  grid-template-rows: 100px;
  align-items: center;
  width: 100%;
  padding: 0 36px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  z-index: 10;
}

.logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  position: static;
  transform: none;
  max-width: 100%;
  color: #222;
  font-family: "Bradstone Parker", cursive;
  font-size: 59px;
  font-weight: normal;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  z-index: 1;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
  flex-shrink: 0;
}

.header-icon svg,
.search-box svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search-box {
  position: absolute;
  left: 36px;
  top: 111px;
  transform: none;
  display: flex;
  align-items: center;
  width: 220px;
  height: 36px;
  margin: 0;
  padding: 0 8px 0 10px;
  border: 1px solid #222;
  background: #fff;
  min-width: 0;
  z-index: 2;
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #222;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  appearance: none;
}

.search-box input::placeholder {
  color: #777;
  opacity: 1;
}

.search-box button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
}

.search-box button svg {
  width: 19px;
  height: 19px;
}

/* =========================
   NAVEGAÇÃO
========================= */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 38px;
  width: 100%;
  min-height: 56px;
  padding: 8px 36px 8px 280px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: #777;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #222;
}

.main-nav a.active {
  font-weight: 400;
}

/* =========================
   PÁGINAS DESLIZANTES
========================= */

.page-viewport {
  width: 100%;
  overflow: hidden;
}

.pages-track {
  display: flex;
  width: 300%;
  align-items: stretch;
  transform: translateX(0);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page,
.panel {
  flex: 0 0 33.333333%;
  width: 33.333333%;
  min-width: 0;
  min-height: calc(100vh - 196px);
  padding-top: 48px;
  padding-bottom: 48px;
}

.page h1 {
  font-family: "Acidic", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: normal;
  line-height: 1.2;
  text-rendering: optimizeLegibility;
}

/* Início */

#inicio {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

#inicio h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  text-align: center;
}

/* Quem somos */

#quem-somos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 8%;
  padding-right: 8%;
  text-align: left;
}

#quem-somos h1 {
  width: 100%;
  margin: 0 0 24px;
  font-size: 32px;
  text-align: left;
  overflow-wrap: anywhere;
}

.about-text {
  width: 100%;
  color: #555;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
  overflow-wrap: anywhere;
}

.about-text p {
  margin: 0 0 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Contato */

#contato {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 8%;
  padding-right: 8%;
  text-align: left;
}

#contato h1 {
  width: 100%;
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 1.2;
  text-align: left;
}

.contact-text {
  width: 100%;
  color: #555;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.contact-text p {
  margin: 0 0 12px;
}

.contact-text a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: normal;
}

.contact-text a:hover {
  text-decoration: underline;
}

/* =========================
   RODAPÉ
========================= */

.site-footer {
  width: 100%;
  margin-top: 0;
  background: #fff;
  color: #888;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 400;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 24px 20px 28px;
}

.footer-logo {
  color: #222;
  font-family: "Bradstone Parker", cursive;
  font-size: 30px;
  text-decoration: none;
}

.footer-brand span {
  color: #888;
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e5e5e5;
  padding: 16px 36px;
  font-size: 11px;
  letter-spacing: 0.4px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #222;
}

/* =========================
   RESPONSIVO — CELULAR
========================= */

@media (max-width: 600px) {
  .site-header {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-rows: 68px 48px;
    column-gap: 8px;
    row-gap: 0;
    height: auto;
    padding: 0 16px 10px;
  }

  .menu {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0;
  }

.logo {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  grid-column: auto;
  grid-row: 1;
  justify-self: auto;
  max-width: calc(100% - 120px);
  font-size: clamp(30px, 8vw, 42px);
  line-height: 68px;
  white-space: nowrap;
}


  .header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 0;
  }

  .header-icon {
    width: 40px;
    height: 44px;
  }

  .header-icon svg {
    width: 21px;
    height: 21px;
  }

  .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 10px;
  }

  .search-box input {
    font-size: 14px;
  }

  .search-box button {
    width: 32px;
    height: 36px;
  }

  .main-nav {
    justify-content: space-around;
    gap: 8px;
    min-height: 54px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .main-nav a {
    min-height: 42px;
    padding: 0 4px;
    text-align: center;
  }

  .page,
  .panel {
    min-height: calc(100svh - 190px);
    padding-top: 32px;
    padding-bottom: 40px;
  }

  #inicio {
    min-height: calc(100svh - 190px);
    padding: 24px 16px;
  }

  #quem-somos,
  #contato {
    justify-content: flex-start;
    padding: 36px 20px 48px;
  }

  #quem-somos h1,
  #contato h1 {
    margin-bottom: 22px;
    font-size: 28px;
    line-height: 1.25;
  }

  .about-text,
  .contact-text {
    font-size: 15px;
    line-height: 1.65;
  }

  .about-text p {
    margin-bottom: 16px;
  }

  .contact-text p {
    margin-bottom: 14px;
  }

  .footer-brand {
    padding: 22px 16px 24px;
  }

  .footer-bottom {
    padding: 16px;
    font-size: 10px;
    gap: 12px;
  }


/* Celulares estreitos */

@media (max-width: 360px) {
  .site-header {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    column-gap: 4px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .logo {
    font-size: clamp(26px, 6.5vw, 27px);
  }

  .header-icon {
    width: 36px;
  }

  .header-actions {
    gap: 0;
  }

  .main-nav {
    gap: 4px;
    padding-right: 8px;
    padding-left: 8px;
    font-size: 11px;
  }

  #quem-somos,
  #contato {
    padding-right: 16px;
    padding-left: 16px;
  }

  .footer-bottom {
    font-size: 9px;
  }
}

/* Acessibilidade: reduzir animações quando solicitado */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pages-track {
    transition: none;
  }

  .main-nav a {
    transition: none;
  }
}}