/* Import 'Cinzel' font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&display=swap');

body {
  margin: 0;
  font-family: 'Cinzel', serif;
}

/* Main Header Container */
.custom-header {
  position: relative; 
  display: flex;
  justify-content: center; 
  align-items: center;
  background-color: #3b2812; 
  
  /* REDUCED: Changed padding from 30px to 12px on top and bottom */
  padding: 12px 60px; 
  
  /* REMOVED: min-height: 80px; so it naturally hugs the text */
}

/* --- CENTERED NAVIGATION WRAPPER --- */
.nav-wrapper {
  position: relative; 
  display: flex;
  flex-direction: column;
  align-items: center; 
  
  /* REDUCED: Brought the Blogs link slightly closer to the main menu */
  gap: 10px; 
}

/* --- SITES BUTTON --- */
.sites-button {
  position: absolute;
  right: 60px; 
  
  /* REDUCED: Scaled the button down to fit the shorter header */
  width: 50px; 
  height: 50px; 
  
  display: flex;
  justify-content: center; 
  align-items: center; 
  background-color: #050005; 
  color: #cda434; 
  border-radius: 8px; 
  font-size: 12px; /* Adjusted slightly for the smaller box */
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
}

/* --- BRAND NAME --- */
.brand-name {
  position: absolute;
  left: 60px; 
  color: #cda434;
  font-size: 24px; /* Bumped up slightly to match the overall increase */
  letter-spacing: 2px;
  text-decoration: none;
  border-bottom: 1px solid #cda434; 
  padding-bottom: 2px;
}

/* --- CENTERED NAVIGATION WRAPPER --- */
.nav-wrapper {
  position: relative; /* This helps anchor the full-width Blogs dropdown */
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 15px; 
}

.main-nav {
  display: flex;
  gap: 30px; 
}

/* --- MAIN NAV ITEMS --- */
.nav-item {
  text-decoration: none;
  color: #cda434; 
  font-size: 17px; /* Increased Font Size */
  letter-spacing: 1.5px;
  transition: color 0.3s ease, border-color 0.3s ease; 
  
  /* Transparent borders so text doesn't jump */
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  padding-top: 4px;
  padding-bottom: 4px;
  display: inline-block;
}

/* Hover & Active States for Main Nav Items */
.nav-item:hover, .nav-item.active, .dropdown:hover > .nav-item {
  color: #ffffff; 
  border-top: 1px solid #cda434;
  border-bottom: 1px solid #cda434;
}

/* --- DROPDOWN MENUS --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none; 
  position: absolute;
  top: 100%; 
  left: 0;
  background-color: #170b0d; 
  min-width: 150px; /* Reduced from 200px to make the box thinner */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
  z-index: 10;
  padding: 8px 0; /* Slimmed down top and bottom padding */
  margin-top: 0; 
  border-bottom: 1px solid #cda434;
}

/* Show the dropdown when hovering over the container */
.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}

/* Styling the links inside the dropdown */
.dropdown-content a {
  color: #ffffff;
  padding: 8px 18px; /* Reduced padding to bring items closer together and closer to edges */
  text-decoration: none;
  font-size: 15px; /* Slightly reduced font size to fit the thinner box comfortably */
  letter-spacing: 1.5px;
  transition: color 0.2s ease;
  white-space: nowrap; /* Ensures long text like the Blogs don't awkwardly wrap to a second line */
}

.dropdown-content a:hover {
  color: #cda434; 
}

/* --- BLOGS FULL-WIDTH SPECIAL CASE --- */
.blogs-dropdown {
  width: 100%; 
}

.blogs-link {
  display: block; 
  text-align: center; 
  width: 100%;
  box-sizing: border-box;
}

.dropdown-content.blogs-content {
  width: 100%;
  text-align: center; 
}

/* --- SITES BUTTON --- */
.sites-button {
  position: absolute;
  right: 60px; 
  width: 65px; 
  height: 65px; 
  display: flex;
  justify-content: center; 
  align-items: center; 
  background-color: #050005; 
  color: #cda434; 
  border-radius: 8px; 
  font-size: 13px; /* Bumped slightly to match */
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
}

/* --- SITES MODAL OVERLAY --- */
.sites-modal {
  /* Swapped display: none for opacity and visibility */
  display: flex; 
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease; /* The fade animation */
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Warm blurred gradient background */
  background: radial-gradient(circle at center, rgba(140, 100, 40, 0.75), rgba(30, 15, 10, 0.95));
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Active class toggled by JS */
.sites-modal.active {
  visibility: visible;
  opacity: 1;
}

/* --- UPDATED CLOSE BUTTON --- */
.modal-close {
  position: absolute;
  /* Adjust these percentage values to move it exactly where you want it */
  top: 15%; 
  right: 20%; 
  
  font-size: 24px;
  color: #ffffff; /* Changed to white so it stands out */
  cursor: pointer;
  font-weight: 300;
  
  /* Added dimensions and alignment for the hover box */
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px; /* Slightly rounds the edges of the grey box */
  
  /* Smooths out the color change */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- CLOSE BUTTON HOVER STATE --- */
.modal-close:hover {
  background-color: #888888; /* Grey box appears */
  color: #000000; /* Inverts the X to black */
}

/* --- INCREASED MODAL GAP --- */
.modal-container {
  display: flex;
  gap: 120px; /* Increased space between links and support card */
  align-items: center;
}

/* --- SCALED UP LEFT SIDE LINKS --- */
.modal-links {
  display: flex;
  flex-direction: column;
  width: 350px; /* Increased width */
}

.modal-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 42px; /* Increased font size */
  font-weight: 700;
  padding: 20px 0; /* Increased padding */
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: opacity 0.2s ease;
}

.modal-links a:hover {
  opacity: 0.8;
}

/* --- SCALED UP RIGHT SIDE SUPPORT CARD --- */
.modal-support-card {
  background: rgba(70, 50, 30, 0.4);
  border-radius: 16px;
  padding: 50px 40px; /* Increased padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 230px; /* Increased width */
}

.support-icon {
  margin-bottom: 25px;
  transform: scale(1.4); /* Scales up the SVG without needing to edit HTML */
}

.modal-support-card h3 {
  color: #ffffff;
  font-size: 18px; /* Increased font size */
  font-weight: 400;
  margin: 0 0 25px 0;
  text-align: center;
}

/* --- SCALED UP BUTTONS & HOVER EFFECT --- */
.support-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px; /* Increased padding */
  border-radius: 25px; 
  text-decoration: none;
  font-size: 14px; /* Increased font size */
  font-weight: 600;
  margin-bottom: 15px;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition for hover */
}

.patreon-btn {
  background-color: #ffffff;
  color: #000000;
}

.kofi-btn {
  background-color: #0a0510;
  color: #ffffff;
}

/* The Grey Hover Effect */
.support-btn:hover {
  background-color: #888888;
  color: #ffffff; 
}

/* Scaled up arrow icons */
.icon-circle {
  border-radius: 50%;
  width: 22px; /* Increased size */
  height: 22px; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px; /* Increased arrow size */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.black-circle {
  background-color: #000000;
  color: #ffffff;
}

.white-circle {
  background-color: #ffffff;
  color: #000000;
}

/* Optional: Keep the circle icons consistent on hover */
.support-btn:hover .icon-circle {
  background-color: #ffffff;
  color: #888888;
}

/* --- HERO BANNER SECTION --- */
.hero-banner {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  background-color: #3b2812; /* Updated to match the custom-header */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; 
}

/* Darker bounding box behind the text */
.hero-text-box {
  background-color: rgba(35, 25, 15, 0.45); 
  padding: 10px 100px; /* Reduced top/bottom padding from 30px to 10px to make it less tall */
  text-align: center;
  z-index: 2; 
}

/* Typography for the Hero Section */
.hero-title, .hero-subtitle {
  color: #b38b22; /* Changed from #cda434 to a slightly darker shade */
  font-family: 'Cinzel', serif;
  font-style: italic;
  font-weight: 600; 
  margin: 0;
  line-height: 1.2;
}

/* Typography for the Hero Section */
.hero-title, .hero-subtitle {
  color: #8a6813; 
  font-family: 'Cinzel', serif;
  font-style: italic;
  font-weight: 600; /* Changed from 400 to 600 to make it bold */
  margin: 0;
  line-height: 1.2;
}

.hero-title {
  font-size: 75px;
  letter-spacing: 1px; /* Reduced from 4px for less space between letters */
  margin-bottom: 5px; 
}

.hero-subtitle {
  font-size: 60px;
  letter-spacing: 2px; /* Reduced from 6px for less space between letters */
}

/* Scales up the first letters */
.large-cap {
  font-size: 1.25em;
}

/* --- BOTTOM WAVE CONTAINER --- */
.wave-container {
  position: absolute;
  bottom: 0; /* Set to 0 to sit perfectly flush at the bottom */
  left: 0;
  width: 100%;
  z-index: 1;
  display: flex; /* Removes the tiny default space below inline images */
}

.wave-image {
  width: 100%;
  height: auto; 
  max-height: 250px; /* Prevents it from getting too tall on massive screens */
  object-fit: cover; /* Ensures it fills the width smoothly without distortion */
  object-position: bottom;
}

/* --- SECOND SECTION --- */
.second-section {
  position: relative;
  width: 100%;
  min-height: 500px; /* Placeholder height so you can see the black background */
  background-color: #000000; /* Blends into the dark edge of the transition image */
  display: flex;
  flex-direction: column;
}

/* --- TOP WAVE CONTAINER --- */
.top-wave-container {
  width: 100%;
  display: flex; /* Removes awkward spacing around the image */
  margin-top: -1px; /* Pulls the image up slightly to prevent a white hairline gap */
  z-index: 1;
}

.top-wave-image {
  width: 100%;
  height: auto; 
  max-height: 250px; /* Keeps the scaling consistent with the top wave */
  object-fit: cover; /* Ensures it fills the screen width */
  object-position: top;
}

/* Placeholder for whatever content you put inside the second section */
.second-section-content {
  padding: 50px;
  color: #ffffff;
  text-align: center;
}