:root {
  --color-navy: #0f3460;
  --color-red: #c0392b;
  --color-text: #1f2933;
  --color-muted: #52606d;
  --color-bg: #ffffff;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  min-height: 70vh;
  position: relative;
  background: var(--color-navy);
  color: #fff;
}

.hero__media {
  position: relative;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.hero__content {
  padding: 4rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.hero__overline {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0;
}

.hero__subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.hero__tagline {
  max-width: 38ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.btn-primary {
  align-self: flex-start;
  background-color: var(--color-red);
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-weight: 600;
  color: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  box-shadow: 0 10px 25px rgba(192, 57, 43, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #d94b3d;
  transform: translateY(-2px);
}

main {
  padding: 4rem 5vw;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
}

.section__header {
  margin-bottom: 1.5rem;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}

.section h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
  color: var(--color-navy);
}

.about__content {
  font-size: 1.05rem;
  color: var(--color-text);
}

.about__content p {
  margin-bottom: 1.2rem;
}


.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  grid-auto-rows: auto;
  gap: 1.5rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  height: auto;
  box-shadow: 0 15px 35px rgba(15, 52, 96, 0.15);
  background-color: #f6f8fb;
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 300ms ease;
}

.gallery__item:hover img {
  transform: scale(1.02);
}

.gallery__item--tall,
.gallery__item--wide {
  grid-row: auto;
  grid-column: auto;
}

.location {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location__map-wrapper {
  width: 100%;
  max-width: 520px;
  /* Adjust this max-width to control the desktop map size */
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 52, 96, 0.12);
}

.location__map {
  width: 100%;
  height: 280px;
  /* Adjust this height to control the map preview size */
  border: 0;
  display: block;
}

.btn-secondary {
  align-self: flex-start;
  background-color: var(--color-navy);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  box-shadow: 0 10px 25px rgba(15, 52, 96, 0.2);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: #153f73;
  transform: translateY(-2px);
}

.footer {
  background-color: #0b2540;
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 5vw;
}

.footer__content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 3rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: auto;
  }

  .location__map-wrapper {
    max-width: none;
  }

  .location__map {
    height: 200px;
  }

  .gallery__item--tall {
    grid-row: auto;
  }

  .gallery__item--wide {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  main {
    padding: 3rem 1.5rem;
  }

  .hero__content {
    padding: 2.5rem 1.5rem 3rem;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery__item--tall,
  .gallery__item--wide {
    grid-row: auto;
    grid-column: auto;
  }
}
