/* Shared product-page alignment */
.content-section .section-title {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2rem !important;
  text-align: center;
}

.features-grid,
.benefits-grid,
.specs-content {
  width: 100%;
  min-width: 0;
}

.specs-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.specs-text h2 {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.5rem !important;
  text-align: center;
}

.specs-list {
  width: 100%;
}

@media (min-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 1099px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared mobile layout for all pages */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .nav-container {
    min-height: 70px;
    padding: 0.75rem 1rem;
  }

  .logo img {
    max-width: min(210px, 58vw);
    height: auto;
    max-height: 42px;
    object-fit: contain;
  }

  .hero-section {
    min-height: 390px;
    height: 62vh;
    margin-top: 70px;
    margin-bottom: 2rem;
    padding: 2rem 1rem;
  }

  .hero-content {
    width: 100%;
    padding: 0;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .content-section,
  .marble-types,
  .contact-page {
    width: 100%;
    padding: 3rem 1rem;
  }

  .section-title,
  .description-text h2 {
    width: 100%;
    margin: 0 0 1.5rem !important;
    font-size: clamp(1.8rem, 8vw, 2.6rem);
    line-height: 1.1;
  }

  .features-grid,
  .specs-content,
  .benefits-grid,
  .description-content,
  .marble-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card,
  .benefit-card,
  .marble-card {
    min-width: 0;
    padding: 1.25rem;
  }

  .feature-card h3,
  .benefit-card h3,
  .marble-card h3 {
    font-size: 1.2rem;
  }

  .specs-section,
  .description-section {
    margin: 2rem 0;
    padding: 3rem 0;
  }

  .specs-content,
  .description-content {
    padding: 0 1rem;
  }

  .specs-image img,
  .description-image img {
    display: block;
    width: 100%;
    margin-left: 0;
    max-height: 280px;
    object-fit: cover;
  }

  #NEWS {
    width: 100%;
    margin: 0;
    padding: 3rem 1rem;
  }

  .contact-hero {
    margin-top: 70px;
    padding: 4rem 1rem;
  }

  .contact-info-container {
    width: auto;
    margin: -2rem 1rem 2rem;
    padding: 0;
    gap: 1rem;
  }

  .contact-card,
  .contact-details,
  .contact-form-container {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .map-container {
    height: 280px;
  }

  .footer {
    padding: 1.5rem 1rem;
  }

  .footer a {
    display: inline-block;
    margin: 0.25rem 0.4rem;
  }

  .login-container,
  .admin-container {
    width: auto;
    margin: 80px 1rem 2rem;
    padding: 1.25rem;
  }

  .admin-header,
  .admin-actions,
  .filters,
  .status-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .enquiry-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .modal-content {
    width: calc(100% - 2rem);
    margin: 1rem auto;
    padding: 1.25rem;
  }
}

@media (max-width: 420px) {
  .hero-section {
    min-height: 340px;
  }

  .content-section,
  .marble-types,
  .contact-page {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .contact-form-container {
    padding: 1.1rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #ead1d0;
    border-radius: 8px;
    background: #fff8f7;
    color: #b4232f;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(85, 27, 38, 0.1);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible,
  .menu-toggle.active {
    background: #b4232f;
    color: #ffffff;
    outline: none;
    box-shadow: 0 8px 18px rgba(180, 35, 47, 0.24);
    transform: translateY(-1px);
  }

  .menu-toggle:focus-visible {
    outline: 3px solid rgba(180, 35, 47, 0.28);
    outline-offset: 3px;
  }
}
