/* Load Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Raleway:wght@400;700&display=swap');

/* Base styles */
body {
  margin: 0;
  overflow-x: hidden;  /* Prevent horizontal scroll */
  font-family: 'Raleway', Arial, sans-serif;
  background-color: #f3e9dc;
  color: #333;
}

/* HERO SECTIONS */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

/* ✅ Hero background images for each page */
.hero.homepage {
  background-image: url('../images/hero-home.jpg');
}

.hero.about {
  background-image: url('../images/about-sketch.jpg');
}

.hero.portfolio {
  background-image: url('../images/portfolio-sketch.jpg');
}

.hero.contact {
  background-image: url('../images/contact-sketch.jpg');
}

/* HERO TEXT BLOCK */
.hero-text {
  margin: auto;
  text-align: center;
  max-width: 800px;
  width: 90%;
  padding: 40px 20px;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.5em;
  margin: 0 0 10px 0;
  line-height: 1.2em;
  color: #fdf5e6;
}

.hero-text p {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 1.2em;
  line-height: 1.5em;
  color: #fdf5e6;
}

.hero-text .blurb {
  font-size: 1.1em;
  margin-top: 20px;
  line-height: 1.6em;
  color: #fdf5e6;
}

/* ✅ ABOUT, PORTFOLIO, CONTACT: use dark text instead */
.hero.about .hero-text h1,
.hero.portfolio .hero-text h1,
.hero.contact .hero-text h1 {
  color: #333;
}

.hero.about .hero-text p,
.hero.portfolio .hero-text p,
.hero.contact .hero-text p,
.hero.about .hero-text .blurb,
.hero.portfolio .hero-text .blurb,
.hero.contact .hero-text .blurb {
  color: #333;
}

/* NAVIGATION BAR - Desktop */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;       /* ✅ Wrap links if needed */
  padding: 20px 40px;
  background: rgba(80, 50, 30, 0.6);
  color: #fff;
  position: absolute;    /* Overlays hero */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 2;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  font-size: 1.8em;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;       /* ✅ Allow wrapping */
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 20px;
  flex-shrink: 1;        /* ✅ Prevent overflow */
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-family: 'Raleway', Arial, sans-serif;
}

/* FOOTER */
footer {
  background: #2e2e2e;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* ✅ MOBILE: smaller nav, centered logo, nav 2×2 grid, blurb centered */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: center;      /* ✅ Center logo */
    padding: 5px 15px;        /* Small bar */
    position: relative;
    background: rgba(80, 50, 30, 0.9);
  }

  .logo {
    font-size: 1.4em;         /* Smaller logo */
    margin-bottom: 5px;
    text-align: center;       /* ✅ Centered logo text */
    width: 100%;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;  /* Center nav links */
  }

  .nav-links li {
    width: 50%;               /* ✅ 2 per row → 2×2 grid */
    margin: 5px 0;
    text-align: center;       /* Center link text */
  }

  .hero {
    background-size: cover;
    background-position: center;
    height: auto;
    padding: 0;
  }

  .hero-text {
    position: static;
    transform: none;
    text-align: center;       /* ✅ Blurb text centered */
    max-width: 95%;
    margin: 20px auto;
    color: #fdf5e6;
  }

  .hero-text h1 { font-size: 1.6em; }

  .hero-text p,
  .hero-text .blurb {
    font-size: 0.95em;
    line-height: 1.4em;
  }

  /* ❌ No hero image below text for mobile */
  .hero-image {
    display: none;
  }
}
