/* ============================================================
   STYLES.CSS — this file controls how everything LOOKS.
   Read the comments to learn what each block does.
   ============================================================ */

/* This first block sets sensible defaults for the whole page. */
* {
  margin: 0;              /* remove the browser's default spacing */
  padding: 0;
  box-sizing: border-box; /* makes sizing math predictable */
}

body {
  font-family: Georgia, 'Times New Roman', serif; /* an elegant font for photography */
  color: #2b2b2b;         /* dark grey text, softer than pure black */
  line-height: 1.6;       /* space between lines, easier to read */
  background: #faf8f5;     /* a warm off-white */
}

/* --- The top navigation bar --- */
.nav {
  display: flex;                 /* lay children out in a row */
  justify-content: space-between;/* logo on left, links on right */
  align-items: center;
  padding: 1.5rem 3rem;
  position: sticky;              /* stays at the top as you scroll */
  top: 0;
  background: #faf8f5;
  z-index: 10;
}

.logo {
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.nav nav a {
  margin-left: 2rem;
  text-decoration: none; /* remove the default underline */
  color: #2b2b2b;
}

.nav nav a:hover {
  color: #b08d57; /* a gold accent when you hover */
}

/* --- The big hero welcome section --- */
.hero {
  text-align: center;
  padding: 8rem 2rem;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
              url('https://picsum.photos/id/1018/1600/900');
  background-size: cover;   /* photo fills the whole area */
  background-position: center;
  color: white;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* --- Reusable button style (used in a few places) --- */
.button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #b08d57;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 1px;
  transition: background 0.3s; /* smooth color change on hover */
}

.button:hover {
  background: #96763f;
}

/* --- Section headings and spacing --- */
section {
  padding: 5rem 3rem;
}

h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

/* --- The photo gallery grid --- */
.grid {
  display: grid;
  /* auto-fit means the grid adds as many columns as fit the screen. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto; /* center the grid on the page */
}

.grid img {
  width: 100%;
  height: 350px;
  object-fit: cover; /* crop photos nicely instead of stretching them */
  border-radius: 4px;
  transition: transform 0.4s;
}

.grid img:hover {
  transform: scale(1.03); /* a gentle zoom on hover */
}

/* --- About + Contact: centered text blocks --- */
.about, .contact {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about p, .contact p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 2rem;
  background: #2b2b2b;
  color: #cfcabf;
  font-size: 0.9rem;
}

/* --- Make it work on phones ---
   This block only applies when the screen is narrow. */
@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
}
