/* ==========================================================================
    General Styles 
   ========================================================================== */
   body {
    font-family: "Spectral", serif;
    line-height: 1.6;
    color: #333;
    display: grid;
    grid-template-areas:
      "nav"
      "hero"
      "about"
      "spotlight"
      "enquire"
      "convention"
      "gallery"
      "footer";
    min-height: 100vh;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: "Merriweather", serif;
    font-weight: 700;
    margin-bottom: 0.5em;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgb(193, 134, 60);
    box-sizing: border-box;
  }
  
  section { padding: 2em; }

/* ==========================================================================
   Layout (Grid)
   ========================================================================== */

body {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto auto auto auto auto;
  grid-template-areas:
    "nav"
    "hero"
    "about"
    "spotlight"
    "enquire"
    "convention"
    "gallery"
    "footer";
  min-height: 100vh;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

   nav {
    grid-area: nav;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 1em;
    text-align: center;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-logo a {
    display: block; /* Ensures the link wraps the image */
  }
  
  .nav-logo img {
    height: 75px;
    display: block; /*removes the default inline spacing*/
  }
  
  .nav-contact {
    color: rgb(0, 0, 0);
    font-weight: 600;
  }
  
  .nav-contact a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    margin: 0 0.5em;
  }
  
  .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /*  centers the nav menu items */
    align-items: stretch; /* Important: Stretch items to full height */
  }
  
   .nav-menu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 26px;
    padding: 0.5em 1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex; /* Important: Use flexbox on the anchor */
    align-items: center; /* Important: Vertically center the content */
    margin: 0 0.5em; /*  Horizontal spacing */
  }
  
  .nav-menu a:hover {
    background-color: rgb(0, 0, 0);
    color: white;
  }
  

/* ==========================================================================
   Hero Section
   ========================================================================== */

#hero {
  grid-area: hero;
  position: relative;
  height: 600px; /* Consider using vh for viewport height */
  padding: 0;
  overflow: hidden; /* Prevents potential overflow issues */
}

.hero-parent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/8.jpg") center/cover no-repeat;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 20% 100%;
}

.hero-child-square {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 300px;
  height: 225px;
  background-color: rgba(0, 0, 0, 0.459);
  border-left: 3px solid white;
  border-right: 3px solid white;
  color: white;
  text-align: left;
  font-size: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 20px;
  line-height: 1.2; /* Improved line height */
  box-sizing: border-box; /* To include padding in width and height */
}

.hero-child-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgb(193, 134, 60);
  color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  padding: 10px 40px;
  box-sizing: border-box;
  flex-wrap: wrap; /* Allows wrapping for smaller screens */
}

.hero-child-bottom .bottom-left {
  font-weight: 600;
  font-size: 36px;
  white-space: nowrap; /* Prevents breaking */
  margin-right: 10px;
}

.hero-child-bottom .bottom-center {
  text-align: left;
  display: flex;
  flex-direction: column; /* Ensures text is aligned under "Empress |" */
}

.hero-child-bottom .product-details {
  display: block; /* Ensures text stays aligned */
  font-size: 18px;
  line-height: 1.3;
}

/* ==========================================================================
   About Section
   ========================================================================== */

   #about {
    grid-area: about;
    padding: 2em;
  }
  
  .about-container {
    display: flex;
    align-items: flex-start; 
    gap: 20px;
    padding: 0 20px;
  }

  .about-heading h3{
    flex: 1;
    font-weight: bold; /* Ensures bold text */
    font-style: normal; /* Removes italic */
  }
  
  .about-text {
    flex: 1;
    font-style: italic; /* Keeps paragraph text italic */
  }
  
  
  .about-image {
    width: 50%; /* Take up half the horizontal space */
    max-width: 50%; /* Prevent image from exceeding half the space */
  }
  
  .about-image img {
     max-width: 100%;
      height: auto;
        display: block;
  }
  
  .about-image figcaption {
    text-align: center;
    font-style: italic;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #555;
  }
  

/* ==========================================================================
   Spotlight Section
   ========================================================================== */

#spotlight {
  grid-area: spotlight;
  text-align: center;
  padding: 1em;
}

#spotlight h2 {
  margin: 0 auto 1em;
  text-align: center;
  border-bottom: 1px solid #000;
  padding-bottom: 0.5em;
  width: 60%;
}

.spotlight-images {
  display: flex;
  justify-content: center;
  align-items: center; /* Vertically align items */
  flex-wrap: wrap;
  gap: 1em; /* Add gap between images */
  margin-top: 2em;
}

.spotlight-images img {
  width: 100%; /* Make images responsive */
  max-width: 250px; /* Set a maximum width */
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease; /* Add a transition for a smooth effect */
}

.spotlight-images img:hover {
  transform: scale(1.05); /* Slightly scale up the image on hover */
}

/* ==========================================================================
   Enquire Section
   ========================================================================== */

   #enquire {
    grid-area: enquire;
    text-align: center;
    padding: 1em;
    width: 100%;
  }
  
  .enquire-text {
    border-top: 1px solid #000;
    width: 60%;
    margin: 0 auto;
    padding-bottom: 2em;
  }
  
  .enquire-text p {
    width: 100%; 
    line-height: 0.2;
  }
 
  
  .enquire-text a {
    color: rgb(0, 0, 0);
    text-decoration: underline;
    font-weight: normal;
      }
  
  .enquire-text a:hover {
    text-decoration: underline;
  }
  
 

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  grid-area: footer;
  background-color: #fff;
  padding: 2em;
  border-top: 1px solid #ccc;
  color: #555;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em; /* Add some gap */
}

/* Logo */
.footer-logo img {
  height: 50px;
}

/* Affiliation Section */
.footer-affiliation-container {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 12px;
}

.footer-affiliation-links {
  list-style: none;
  padding-left: 10px;
  margin: 0;
  border-left: 2px solid #000;
}

.footer-affiliation-links li {
  margin: 3px 0;
}

.footer-affiliation-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.footer-affiliation-links a:hover {
  color: #000; /* Example hover color */
  text-decoration: underline;
}

/* Social Media */
.footer-social {
  text-align: right;
}

.footer-social p {
  font-weight: bold;
  margin-bottom: 5px;
}

/* Social Media Icons */
.social-icons {
  display: flex;
  gap: 5px;
}

.social-icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: #ddd;
  color: #fff;
  text-align: center;
  line-height: 30px;
  border-radius: 5px;
  font-size: 1.2em;
  transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

/* Individual colors */
.facebook {
  background: #3b5998;
}
.twitter {
  background: #1da1f2;
}
.google {
  background: #db4437;
}
.linkedin {
  background: #0077b5;
}
.youtube {
  background: #ff0000;
}

.social-icon:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Convention Section
   ========================================================================== */

   #convention {
    background-color: #fff;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    padding: 2em;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  #convention h2 {
    font-size: 2em;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 1em;
  }
  
  #convention .convention-text p {
    font-size: 1.2em;
    line-height: 1.5;
    max-width: 70%;
    margin: 0 auto;
  }

/* ==========================================================================
   Gallery Section
   ========================================================================== */

   #gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    width: 100%;
  }
  
  #gallery h2 {
    font-size: 2.5em;
    font-style: italic;
    border-bottom: 1px solid #000;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
    max-width: 90%;
  }
  
  .gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 columns */
    gap: 15px;
    justify-content: center;
    align-items: start;
    width: 60%;
    margin-bottom: 1em;
}

  .gallery-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background-color: #fff;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .gallery-card:hover {
    transform: translateY(-5px);
  }
  
  .gallery-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
  }
  
  .gallery-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
  }
  
  .gallery-card h3 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    color: #333;
  }
  
  .gallery-card p {
    font-size: 0.9em;
    line-height: 1.4;
    color: #666;
    margin-bottom: 1em;
    flex-grow: 1;
  }
  
  .gallery-card .price {
    font-size: 1.1em;
    font-weight: bold;
    color: #007bff;
  }
  
/* ==========================================================================
   Form Section
   ========================================================================== */

.form-container {
  max-width: 600px;
  margin: 2em auto; /* Added top and bottom margin */
  padding: 20px;
  background: rgb(255, 255, 255);
  box-sizing: border-box; /* Added box-sizing */
}

/* h2 is defined in general styles */

.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 14px;
  margin-bottom: 5px;
}

input,
textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

textarea {
  resize: vertical;
  height: 100px;
}

.button-container {
  display: flex;
  justify-content: flex-end; /* Aligns items to the right */
}

button {
  padding: 10px;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  width: 150px;
}

button:hover {
  background: #555;
}

/* ==========================================================================
   Ringsize
   ========================================================================== */

.ringsize {
  width: 90%; /* Adjust width */
  max-width: 800px; /* Added max-width */
  margin: 2em auto; /* Added top and bottom margin */
  text-align: center;
  box-sizing: border-box; /* Added box-sizing */
}

/* h1 is defined in general styles */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}

th {
  background-color: #f0f0f0;
  font-weight: bold;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9; /* Lighten even row color */
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

   @media (max-width: 768px) {
    .container {
      width: 95%; /* Wider container on smaller screens */
    }
  
    .nav-container {
      flex-direction: column;
      text-align: center;
    }
  
    .nav-menu {
      margin-top: 0.5em;
    }
  
    .nav-menu li {
      margin: 0.25em 0;
    }
  
    .nav-menu a {
      display: block;
      text-align: center;
    }
  
    .footer-container,
    .footer-affiliation-container {
      flex-direction: column;
      text-align: center;
    }
  
    .footer-affiliation-links {
      border-left: none; /* Remove border on mobile */
      padding-left: 0;
    }
  
    .footer-social {
      text-align: center;
    }
  
    .footer-social p {
      display: block;
      margin-bottom: 0.5em;
    }
  
    .about-container {
      flex-direction: column;
      text-align: center;
      align-items: center; /* Center image */
    }
  
    .about-text {
      margin-bottom: 1em;
    }
  
    .about-image {
      padding: 0;
    }
  
    /* Hero Section Adjustments for Mobile */
    #hero {
      height: auto;
    }
  
    .hero-parent {
      position: relative;
    }
  
    .hero-child-square {
      position: static;
      width: 100%;
      height: auto;
      transform: none;
      margin-bottom: 1em;
    }
  
    .hero-child-bottom {
      position: static;
      width: 100%;
      height: auto;
      flex-direction: column;
      text-align: center;
      padding: 10px;
    }
  
    .hero-child-bottom .bottom-left,
    .hero-child-bottom .bottom-center {
      text-align: center;
    }
  
    .hero-child-bottom .bottom-center {
      padding-left: 0;
    }
  
    /* Spotlight Adjustments for Mobile */
    .spotlight-images {
      flex-direction: column;
      align-items: center;
    }
  
    .spotlight-images img {
      width: 80%;
      margin: 0.5em 0;
    }
  
    /* Convention Adjustments for Mobile */
    #convention h2 {
      font-size: 1.6em;
    }
  
    #convention .convention-text p {
      font-size: 1em;
      max-width: 90%;
    }
  
    /* Gallery Responsive Adjustments */
    #gallery h2 {
      font-size: 2em;
    }
  
    .gallery-container {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 10px;
    }
  
    .gallery-card img {
      max-height: 180px;
    }
  
    .gallery-card h3 {
      font-size: 1em;
    }
  
    .gallery-card p {
      font-size: 0.85em;
    }
  
    .gallery-card .price {
      font-size: 1em;
    }
  }
  
  @media (max-width: 600px) {
    table {
      font-size: 14px;
    }
  }
  
  /* Enquire Adjustments for Mobile */
  @media (max-width: 768px) {
    .enquire-text p {
      font-size: 1rem;
      padding: 0 15px;
    }
  }
  
  /* Additional Gallery Adjustments for Smaller Screens */
  @media (max-width: 480px) {
    #gallery h2 {
      font-size: 1.8em;
    }
  
    .gallery-container {
      grid-template-columns: 1fr;
    }
  
    .gallery-card {
      width: 100%;
    }
  
    .gallery-card img {
      max-height: 150px;
    }
  }
  