@import url('https://fonts.googleapis.com/css2?family=Nexa:wght@400;700&display=swap');

body {
  margin: 0;
  padding: 0;
  font-family: 'Nexa', sans-serif;
  background-color: #f2eded;
}

#first-look {
  background-color: #161515;
  color: #f2eded;
  height: auto;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
  margin-top: 20px;
}

.logo img {
  height: 100px; /* or whatever size suits */
  width: auto;
  display: block;
}

.nav-menu a:focus {
  outline: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu a {
  position: relative;
  text-decoration: none;
  color: #f2eded;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
  display: inline-block;
  transition: transform 0.3s ease;
  line-height: 1; /* keeps space consistent */
  padding: 0px 20px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #f2eded;
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  transform: scale(1.1); /* instead of font-size change */
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none; /* hidden by default */
}

.logo {
  font-size: 18px;
  line-height: 1.2;
  font-weight: bold;
  color: #f2eded;
}


.intro-section {
  width: 80%;
  margin: 60px auto;
  text-align: center;
  justify-items: center;
}

.intro-heading {
  font-size: 65px;
  font-weight: 900;
  color: #161515;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  line-height: 1.4;
}

.text-box {
  max-width: 800px;
  padding: 30px;
  text-align: center;
  background: #fff; /* optional background */
  border-radius: 10px; /* optional style */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* optional */
}

.intro-para {
  font-size: 24px;
  font-weight: 400;
  color: #161515;
  margin-top: 25px;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 40px;
}

.card {
  background-color: #f2eded;
  color: #161515;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  border-radius: 25px;
  display: block;         /* Makes image block-level */
  width: 95%;
  object-fit: cover;
  margin: 0 auto;         /* Centers horizontally */
  padding-top: 10px;
}

.card h3 {
  margin: 15px;
  font-size: 30px;
}

.card p {
  margin: 0 15px 20px;
  font-size: 0.95em;
  line-height: 1.5;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 40px;
}

.card-footer p {
  margin: 0;
  font-size: 14px;
  color: #161515;
}

.more-link {
  color: #161515;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.more-link:hover {
  color: #555;
}

.last {
  background-color: #161515;
  color: #f2eded;
  text-align: center; /* optional for h3 if used later */
  padding: 15px;
}

.contact-info {
  display: flex;
  justify-content: center; /* centers horizontally */
  gap: 60px; /* spacing between Phone, Email, Home */
  flex-wrap: wrap; /* wraps on small screens */
  font-size: 16px;
  align-items: center;
}

.contact-info p {
  margin: 0;
}

.home-link {
  color: #f2eded;
  text-decoration: none;
  font-weight: bold;
}

.home-link:hover {
  text-decoration: underline;
}


/* Tablet View */
@media (max-width: 1024px) {
  .intro-heading {
    font-size: 45px;
  }

  .intro-para {
    font-size: 20px;
    line-height: 1.6;
  }

  .container {
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 15px;
    padding: 20px;
  }

  .card h3 {
    font-size: 24px;
  }

  .card img {
    width: 100%;         /* ✅ take full width inside card */
    height: auto;        /* keep aspect ratio */
    padding-top: 0;
    border-radius: 0;
  }
}

/* ==================== Mobile (up to 768px) ==================== */
@media (max-width: 768px) {
  .card img {
    width: 100%;         /* ✅ perfectly fits the card */
    height: auto;
    border-radius: 0;
  }
}

/* ==================== Tablet (768px - 1024px) ==================== */
@media (max-width: 1024px) {

  .intro-heading {
    font-size: 35px;
    line-height: 1.3;  /* keeps text tighter */
    margin-top: 10px;  /* safer than negative */
  }

  .intro-para {
    font-size: 18px;
    line-height: 1.5;
  }

  .container {
    grid-template-columns: 1fr; /* 1 card per row */
    gap: 20px;
    padding: 20px;
  }

  .card h3 {
    font-size: 22px;
  }

  .card-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
