@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Regular.woff2") format("woff2"), url("/assets/fonts/Inter-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Italic.woff2") format("woff2"), url("/assets/fonts/Inter-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

:root {
  --accent: #f7a823;
  --bg: #f8f8f9;
  --product-card: #ebebeb;
  --card: #fff;
  --text: #464343;
  --text-accent: #333;
  --muted: #6d6d6d;
  --border: #e7e7e7;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;

  --content-padding-x: 6%;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%; /* prevent font scaling in landscape */
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}

/* -------Layout------ */
.content-container {
  padding: 8em var(--content-padding-x);
}

.section-title-container {
  margin-bottom: 4em;
}

.section-title-bar {
  display: inline-block;
  width: 76px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  flex: 0 0 56px;
}

.section-title-text {
  font-size: 40px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

@media (max-width: 1080px) {
  .content-container {
    padding: 6em var(--content-padding-x);
  }
}

@media (max-width: 700px) {
  .content-container {
    padding: 3em var(--content-padding-x);
  }

  .section-title-container {
    margin-bottom: 2em;
  }

  .section-title-text {
    font-size: 26px;
  }

  .section-title-bar {
    width: 44px;
    height: 5px;
  }
}

/* -------Header------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em var(--content-padding-x) 1em var(--content-padding-x);
  background-color: var(--bg);
  box-shadow: 0 2px 8px rgba(38, 0, 0, 0.06);
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.5em;
}

.logo {
  height: 40px;
}

.tagline {
  font-size: 1rem;
  color: #808080;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;

  .header-anchor {
    font-weight: 600;
  }
}

.main-nav a {
  font-weight: 600;
  color: var(--text-accent);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 1rem;
  border: 1px solid #ddd;
}

.lang-btn {
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  background: #f5f5f5;
  border: none;
  font-weight: bold;
  color: #555;
}

.lang-btn.is-active {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 700px) {
  .logo-container {
    align-items: center;
  }
  .site-header {
    flex-direction: column;
    gap: 1rem;
  }
}

/* -------Products------ */
.product-grid {
  list-style: none;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
}

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  width: 100%;
  text-align: center;
  background: var(--product-card);
  border-radius: 16px;
  padding: 28px 20px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.product-card:focus-visible {
  outline: 3px solid #f39a22;
  outline-offset: 2px;
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  color: #3b3b3b;
  margin-bottom: 1.25em;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

/* -------About us------ */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.about-text {
  font-size: 20px;
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-media {
  width: 50%;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1080px) {
  .about-content {
    flex-direction: column-reverse;
    gap: 2.5rem;
  }

  .about-text {
    flex: 0 0 100%;
  }

  .about-media {
    width: 100%;
  }
}

/* -------Contact------ */
.contact {
  font-size: 18px;
}

.contacts-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.chat-with-us {
  font-size: 20px;
  font-weight: 600;
  margin-top: 1.65em;
}

.contact-person {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 1rem 1.5rem;
  align-items: center;
  width: 100%;
}

.contact-photo {
  width: 100%;
  max-width: 260px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--product-card);
  justify-self: start;
}

.contact-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: inherit;
}

.contact-name {
  font-size: 22px;
  font-weight: 700;
}

.contact-lines a:hover {
  text-decoration: underline;
}

.contact-qr-code {
  justify-self: end;
}

.whatsapp-qr-code {
  width: 180px;
}

@media (max-width: 1540px) {
  .contact-person {
    grid-template-columns: 1fr 1.8fr 1fr;
  }
}

@media (max-width: 1300px) {
  .contact-body {
    gap: 1rem;
  }

  .contact-person {
    grid-template-columns: 1fr;
  }

  .contact-qr-code {
    justify-self: center;
  }

  .whatsapp-qr-code {
    width: 220px;
  }
}

@media (max-width: 700px) {
  .contacts-people {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-body {
    gap: 1rem;
  }
}


/* -------Gallery------ */
.gallery {
  background-color: #f4f5f7;
  padding: 3rem var(--content-padding-x);
  margin-top: 3rem;
}

.gallery-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.gallery-content h2 {
  font-size: 45px;
  font-weight: 600;
  flex: 1;
}

.gallery-img {
  flex: 1;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 1240px) {
  .gallery-content {
    flex-direction: column;
  }
}

@media (max-width: 1080px) {
  .gallery-content h2 {
    font-size: 32px;
  }
}

/* -------Footer------ */
.footer {
  font-size: 1.1rem;
  background-color: #fff;
  padding: 3rem var(--content-padding-x);
  display: flex;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

/* -------Dialog------ */
dialog {
  width: min(80vw, 900px);
  max-width: 900px;
  max-height: 85vh;
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;

  background: #fff;
  color: var(--text);
  border: none;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  padding: 2rem;

  overflow: hidden;
}

dialog[open] {
  position: fixed;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.36);
}

#close-dialog {
  position: absolute;
  top: 1rem;
  right: 2rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* -------Product Dialog------- */
.pd {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(85vh - 4rem);
}

.pd-title {
  font-size: 1.6em;
  font-weight: 600;
}

.pd-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.pd-category {
  padding: 1.5rem 0;
  border-top: 1px solid #e8e8e8;
}

.pd-category:first-of-type {
  border-top: none;
}

.pd-category-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-accent);
}

.pd-category-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.pd-category-img {
  flex: 0 0 220px;
  width: 220px;
  height: auto;
  object-fit: contain;
}

.pd-category-variations {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pd-category-variations .pd-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
  border: none;
}

.pd-category-text {
  flex: 1;
  padding-right: 1rem;
}

.pd-category-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

.pd-category-text p {
  margin: 0;
  font-size: 0.95rem;
}

.pd-img {
  flex: 0 0 150px;
  width: 150px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .pd-category-container {
    flex-direction: column;
    gap: 1.25rem;
  }

  .pd-category-img {
    width: 100%;
    max-width: 300px;
  }

  .pd-category-variations .pd-category {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }

  .pd-img {
    width: 100%;
    max-width: 250px;
    margin-top: 0.75rem;
    align-self: center;
  }
}

@media (max-width: 600px) {
  .pd-category-title {
    font-size: 1.1rem;
  }

  .pd-category-text h4 {
    font-size: 0.95rem;
  }

  .pd-category-text p {
    font-size: 0.9rem;
  }
}

.is-hidden {
  display: none !important;
}
