:root {
  --dark: #2b2b2b;
  --muted: #777;
  --light: #f7f7f7;
  --border: #ccc;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--dark);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-main {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

section {
  padding: 0.75rem 0;
  width: 100%;
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 1px;
  background-color: var(--border);
}

.hero::before {
  display: none;
}

.hero {
  text-align: center;
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  color-scheme: light;
}

.logo {
  max-width: 260px;
  margin-bottom: 0.25rem;
}

.tagline {
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
}

.phone-number {
  display: block;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.phone-number:hover {
  color: var(--dark);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

h2, h3 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.map iframe {
  width: 100%;
  height: 260px;
  border: none;
}

/* Contact + Map combined layout */
.contact-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}
.contact-col {
  max-width: 520px;
}
.contact-item, .hours-item {
  margin-bottom: 0.25rem;
}
.contact-item h2, .hours-item h2 {
  text-align: center;
}
.contact-item p, .hours-item p {
  text-align: left;
  margin: 0.25rem 0 0 0;
}
.map-col iframe {
  width: 100%;
  height: 280px;
  border: none;
}

.directions-btn {
  display: block;
  margin: 0.75rem auto 0;
  padding: 0.75rem 1.5rem;
  background: var(--dark);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  width: fit-content;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.directions-btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.reviews-wrapper {
  overflow: hidden;
}

.reviews {
  display: flex;
  gap: 0.75rem;
  animation: scroll 12s linear infinite;
}

.review {
  min-width: 240px;
  background: var(--light);
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.review .stars {
  display: block;
  color: #f5c518; /* gold */
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.review-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.review-name {
  font-weight: 600;
  color: var(--dark);
}

.review-date {
  color: var(--muted);
  font-size: 0.8rem;
}

.review-text {
  margin: 0;
  line-height: 1.4;
  color: var(--dark);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
}

.placeholder {
  height: 140px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* Gallery images */
.gallery-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  cursor: pointer;
  object-fit: cover;
}

/* Image modal styles */
.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  padding: 1rem;
}
.img-modal[aria-hidden="false"] {
  display: flex;
}
.img-modal-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  background: white;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.img-modal-content img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
}
.img-modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

form {
  max-width: 500px;
  display: grid;
  gap: 0.75rem;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

input, select, textarea, button {
  padding: 0.6rem;
  font-family: inherit;
  border: 1px solid var(--border);
}

button {
  background: var(--dark);
  color: white;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
  width: fit-content;
  justify-self: center;
  border-radius: 20px;
  border: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

footer {
  background: var(--light);
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  width: 100%;
}

/* MOBILE — KEEP CONTACT & HOURS SIDE BY SIDE */
@media (max-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .tagline {
    text-align: center;
  }

  /* Keep contact and hours side-by-side above the map */
  .contact-map-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem 0;
  }

  .contact-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .map-col {
    grid-column: 1 / -1;
  }

  .map-col iframe {
    height: 240px;

  }
}

/* DESKTOP: ensure headings and content are left-aligned under their headings */
@media (min-width: 601px) {
  .contact-item h2, .hours-item h2 {
    text-align: left;
  }
  .contact-item p, .hours-item p {
    text-align: left;
  }
}

/* Larger screens: tighten spacing between contact and map */
@media (min-width: 900px) {
  /* Center the whole contact-map block and tighten spacing */
  .contact-map-grid {
    grid-template-columns: 360px 440px;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
    justify-items: start;
    align-items: center;
  }
  .contact-col {
    max-width: 360px;
    padding-right: 0;
  }
  .map-col {
    padding-left: 0;
  }
}

