@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  --header-height: 9rem;
  --first-color: hsl(220, 68%, 54%);
  --first-color-lighten: hsl(220, 68%, 97%);
  --title-color: rgb(64, 15, 97);
  --text-color: hsl(220, 30%, 45%);
  --body-color: hsl(220, 100%, 99%);
  --second-heading-color: hsl(334, 75%, 31%);
  --body-font: 'Rubik', sans-serif;
  --title-font-size: 3rem;
  --subtitle-font-size: 2rem;
  --paragraph-font-size: 1.2rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  --font-medium: 500;
  --font-semi-bold: 600;
  --z-tooltip: 10;
  --hero-background: #ffcff1;
  --nav-background: #dcd0ff;
  --nav-background-darker: #cebff9;
  --border-background: #c3b0fa;
  --z-fixed: 100;
}

@media screen and (min-width: 1024) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

.dropcap {
  font-weight: var(--font-semi-bold);
  font-size: var(--paragraph-font-size);
}

h1 {
  font-weight: var(--font-semi-bold);
  font-size: var(--title-font-size);
}

h2 {
  font-weight: var(--font-semi-bold);
  font-size: var(--subtitle-font-size);
}

h3 {
  font-weight: var(--font-semi-bold);
  font-size: var(--paragraph-font-size);
}

section > p {
  font-weight: var(--font-medium);
  font-size: var(--paragraph-font-size);
  line-height: 1.75rem;
  max-width: 65rem;
}

.description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  row-gap: 0.75rem;
}

video {
  width: 100%;
  height: 30rem;

  object-fit: cover;
}

img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
}

.title__violet-red {
  color: var(--second-heading-color);
}

i {
  font-size: 1.25rem;
}

html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

main {
  flex: 1; /* grow to take up the available space */
  /* padding: 1rem; */
}

.footer a {
  color: inherit;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

.logo {
  height: 6rem;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center; /* or space-between / flex-end */
  align-items: center;
  gap: 0.5rem; /* spacing between items */
  padding: 1rem;
  font-size: 0.9rem;
  background-color: #f1f1f1;
  color: #333;
  background: #dcd0ff;
  background: linear-gradient(
    90deg,
    var(--nav-background-darker) 0%,
    var(--nav-background) 100%
  );
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

/* ===================== Table ===================== */

.table-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.1rem;
  /* margin-bottom: 2rem; */
}

table {
  border-collapse: collapse;
  width: 75rem;
}

th,
td {
  font-size: 1.1rem;
  border: 1px solid black;
  padding: 0.5rem;
  text-align: center;
}

tr td:first-child {
  width: 16rem;
}

tr td:nth-child(2) {
  min-width: max-content;
}

th {
  background-color: #f2f2f2;
  font-weight: var(--font-semi-bold);
}

.whatsapp-and-mail {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.download-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 24px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.whatsapp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: #2cc163;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 24px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.mail-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--text-color);
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-size: 24px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.download-icon-btn:hover {
  background-color: #b71c1c;
}

/* ===================== Nav ===================== */

.nav-menu {
  width: 100%;
  background-color: var(--nav-background);
  background: #dcd0ff;
  background: linear-gradient(
    90deg,
    var(--nav-background-darker) 0%,
    var(--nav-background) 100%
  );
}

.whatsapp-pill {
  width: 11rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.2rem;
  border: 3px solid var(--title-color);
  border-radius: 1.75rem;
  margin-top: 0.75rem;
  text-align: center;
  background: linear-gradient(
    90deg,
    var(--nav-background-darker) 0%,
    var(--nav-background) 100%
  );
  padding: 0.3rem;
  cursor: pointer;
  will-change: transform;
  transform: scale(1);
  transition: transform 0.3s ease-in-out;
}

.whatsapp-pill:hover,
.whatsapp-pill:focus {
  transform: scale(1.05);
}

.whatsapp-pill i {
  color: #2cc163;
  font-size: 1.75rem;
}

.column-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.product-title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: var(--font-semi-bold);
}

.indented-description {
  display: flex;
  column-gap: 0.75rem;
  font-size: 1.15rem;
}

/* ===================== Mobile-Only Styles (max-width: 768px) ===================== */
@media screen and (max-width: 768px) {
  /* Prevent horizontal scrolling */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Ensure images scale correctly */
  img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  video {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Adjust header height for mobile */
  :root {
    --header-height: auto;
  }

  /* Logo adjustments */
  .logo {
    height: 4rem;
  }

  /* Contact info adjustments */
  .contact-info {
    font-size: 0.85rem;
    padding-right: 0.5rem;
    line-height: 1.5rem;
  }

  .contact-info > a:nth-of-type(2) {
    font-size: 0.8rem;
  }

  .whatsapp-pill {
    width: 9rem;
    font-size: 0.85rem;
    padding: 0.25rem;
    margin-top: 0.5rem;
  }

  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section > p {
    font-size: 1rem;
    line-height: 1.5rem;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Description section */
  .description {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Table responsiveness */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  table {
    width: 100%;
    min-width: 600px;
    font-size: 0.9rem;
  }

  th,
  td {
    font-size: 0.85rem;
    padding: 0.4rem;
  }

  tr td:first-child {
    width: 12rem;
  }

  /* Footer adjustments */
  footer {
    font-size: 0.8rem;
    padding: 0.75rem;
    text-align: center;
  }

  /* Touch target sizes */
  a,
  button {
    min-height: 44px;
    min-width: 44px;
  }

  /* Product title */
  .product-title {
    font-size: 1.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Indented description */
  .indented-description {
    flex-direction: column;
    row-gap: 0.5rem;
    font-size: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
