/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f9f9f9;
  color: #333;
}

nav {
  background: #ffffff;
  padding: 15px 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

nav a:hover {
  color: #2a6a9a;
}

.hero {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 40px;
}

.hero button {
  padding: 15px 30px;
  background: #2a6a9a;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}

.hero button:hover {
  background: #1d4b6d;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin: 40px 0 20px;
}

.preview-grid,
.hashgacha-grid {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px;
}

.preview-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.preview-box a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #2a6a9a;
  font-weight: bold;
}

.hashgacha-item img {
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

.hashgacha-item img:hover {
  transform: scale(1.05);
}

.expanded {
  width: 100%;
  margin-top: 15px;
  background: #ffffff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.contact-box {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  line-height: 1.7em;
}

footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  background: #eee;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
}

.business {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.business img {
  width: 120px;
  height: auto;
}

.business.expanded img {
  width: 240px;
}

.business p {
  margin-top: 10px;
  font-weight: bold;
}

.modal-content h2 {
  font-size: 1.4em;
  margin: 12px 0 8px;
}

#modal-contacts {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  font-size: 15px;
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.contact-phone {
  background: #2e7d32;
}

.contact-whatsapp {
  background: #25D366;
}

.contact-email {
  background: #1565c0;
}

.contact-btn:hover {
  opacity: 0.9;
}

.contact-link {
  display: block;
  margin: 6px 0;
  /* tighter spacing */
  text-decoration: none;
  color: #2a6a9a;
  font-weight: bold;
  line-height: 1.4;
  /* tighter vertical rhythm */
}

.contact-link:hover {
  text-decoration: underline;
}

.modal-title-link {
  color: #2a6a9a;
  text-decoration: none;
  font-weight: bold;
}

.modal-title-link:hover {
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 90%;
  max-height: 90vh;
  /* IMPORTANT */
  overflow-y: auto;
  /* IMPORTANT */
  text-align: center;
  border-radius: 8px;
  position: relative;
}

.modal-content {
  -webkit-overflow-scrolling: touch;
}

.close {
  position: sticky;
  top: 0;
  background: white;
  padding: 5px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}