/* ============================================================
   Linia Mov Lavanda — pages.css
   About (despre), Benefits (beneficii), Contact pages
   ============================================================ */

/* ------------------------------------------------------------
   About page (despre.html)
   ------------------------------------------------------------ */
.about-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: var(--space-xl);
}

@media (min-width: 900px) {
  .about-layout {
    flex-direction: row-reverse;
    align-items: flex-start;
  }
}

/* Gallery column */
.about-gallery {
  flex: 1 1 300px;
  max-width: 650px;
}

.about-gallery #featured {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.about-gallery .thumbnail-strip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* Text column */
.about-text {
  flex: 1 1 300px;
}

.about-text p {
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.8;
}

/* ------------------------------------------------------------
   Benefits page (beneficii.html)
   ------------------------------------------------------------ */
.benefits-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xl);
}

@media (min-width: 700px) {
  .benefits-intro {
    flex-direction: row;
    align-items: flex-start;
  }
}

.benefits-product-img {
  flex-shrink: 0;
  text-align: center;
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.benefits-product-img img {
  width: 100px;
  height: 170px;
  object-fit: contain;
}

.benefits-intro-text {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.8;
}

/* Benefits table */
.table-container {
  padding: var(--space-md) var(--space-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  background: url('../images/joy1.jpg') center/cover fixed;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(133, 40, 173, 0.12);
}

/* Header row */
thead th {
  background-color: rgba(133, 40, 173, 0.82);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: bold;
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  letter-spacing: 0.03em;
}

/* Column widths */
thead th:nth-child(1) { width: 18%; }
thead th:nth-child(2) { width: 54%; }
thead th:nth-child(3) { width: 28%; }

/* Data cells */
tbody td {
  padding: var(--space-md) var(--space-lg);
  background-color: rgba(245, 240, 247, 0.9);
  vertical-align: top;
  border-bottom: 1px solid rgba(180, 150, 220, 0.25);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

tbody tr:nth-child(even) td {
  background-color: rgba(232, 220, 248, 0.88);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Benefit tags — pill style */
.benefit-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.benefit-tags li {
  background-color: rgba(133, 40, 173, 0.15);
  border: 1px solid rgba(133, 40, 173, 0.3);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Ideas list */
.ideas-list {
  list-style: disc;
  padding-left: var(--space-md);
  margin: 0;
}

.ideas-list li {
  margin-bottom: var(--space-sm);
}

.ideas-list li:last-child {
  margin-bottom: 0;
}

/* Product links */
.product-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-links li a {
  display: block;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: bold;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(133, 40, 173, 0.2);
  transition: color var(--transition), padding-left var(--transition);
}

.product-links li:last-child a {
  border-bottom: none;
}

.product-links li a:hover {
  color: var(--color-accent);
  padding-left: var(--space-sm);
}

/* Mobile: stack columns as labelled sections */
@media (max-width: 700px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    margin-bottom: var(--space-md);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(133, 40, 173, 0.1);
  }

  tbody td {
    border-bottom: 1px solid rgba(180, 150, 220, 0.25);
  }

  tbody tr td:last-child {
    border-bottom: none;
  }

  tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-heading);
    font-weight: bold;
    color: var(--color-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-sm);
  }
}

.benefits-warning {
  padding: var(--space-md) var(--space-xl);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Modal trigger button */
.modal-trigger {
  background-color: var(--color-accent-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: background-color var(--transition);
}

.modal-trigger:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  inset: 0;
  background-color: rgba(136, 77, 208, 0.55);
  padding: var(--space-xl);
  overflow-y: auto;
}

.modal-content {
  background-color: #fff;
  max-width: 640px;
  margin: 10vh auto 0;
  padding: var(--space-xl);
  border: 1px solid #888;
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-size: 1.5rem;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-text);
}

/* ------------------------------------------------------------
   Contact page (contact.html)
   ------------------------------------------------------------ */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: var(--space-xl);
}

@media (min-width: 700px) {
  .contact-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.contact-info {
  flex: 2;
  font-size: 1rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-section-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.contact-email {
  background-color: var(--color-mark-contact);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-weight: bold;
}

.contact-italic {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-image {
  flex: 1;
  max-width: 420px;
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}
