/* --- Root Variables --- */
:root {
  --bg-color: #ff99aa;
  --text-color: #2e1a47;
  --serif-font: "Playfair Display", serif;
}

/* --- Global Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--serif-font);
  padding: 3vw 5vw;
  min-height: 100vh;
}

/* Ensure the container doesn't cut off the dropdown */
.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

/* --- Header Section --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8vh;
  position: relative;
  z-index: 1000;
  overflow: visible; /* CRITICAL: Allows dropdown to be seen */
}

.logo-text {
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: bold;
}

.top-nav {
  display: flex;
  align-items: center;
  overflow: visible;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin-left: 30px;
  text-transform: uppercase;
  font-weight: bold;
}

.nav-link:hover {
  text-decoration: underline;
}

/* --- Dropdown Menu Fix --- */
.dropdown {
  position: relative;
  display: inline-block;
  margin-left: 30px;
}

/* Removing the margin from the link inside the dropdown to avoid double-spacing */
.dropdown .nav-link {
  margin-left: 0;
}

.dropdown-content {
  display: none; /* Hidden by default */
  position: absolute;
  background-color: var(--bg-color); /* Matches page background */
  min-width: 200px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 0;
  text-align: center;
}

/* Show the dropdown when hovering over the container */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 10px 0;
  text-decoration: none;
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: bold;
}

.dropdown-content a:hover {
  text-decoration: underline;
}

/* --- About Section Layout --- */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5vw;
  align-items: center;
}

.about-image-box {
  width: 100%;
  aspect-ratio: 9/16; /* Maintains a 9:16 ratio */
  overflow: hidden;
}

.about-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Text Content --- */
.about-text-content {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 3vh;
  /* Case is now determined by your HTML */
}

.about-paragraph p {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- Responsive View --- */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }

  header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nav-link,
  .dropdown {
    margin-left: 15px;
    margin-right: 15px;
  }

  .about-image-box {
    max-width: 500px;
    margin: 0 auto;
  }

  .dropdown-content {
    position: static;
    transform: none;
    width: 100%;
    display: none; /* Still only shows on hover, but in the flow of the page */
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* --- Footer Section --- */
footer {
  margin-top: 10vh;
  padding-top: 20px;
  border-top: 1px solid rgba(46, 26, 71, 0.15);
  display: flex;
  justify-content: center;
}

.footer-contact {
  text-align: center;
}

.footer-contact .label {
  margin-bottom: 10px;
}

.contact-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Navigation Alignment Fix */
.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

.top-nav > * {
  margin: 0 1.8rem;
}

.top-nav .nav-link {
  display: inline-block;
}

.dropdown {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .top-nav {
    justify-content: center;
    gap: 1.5rem;
  }
}
