/* ==========================================
   🧱 GLOBAL BASE STYLESHEET — style.css
   Used for reset, typography, layout, buttons,
   utilities, forms, and common page sections.
========================================== */

/* ------------------------------
   🌍 GLOBAL RESET & BOX MODEL
---------------------------------*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ------------------------------
   🧱 BASE HTML & BODY
---------------------------------*/
html, body {
  height: 100%;
  font-family: 'Cinzel', serif;      /* Fantasy-medieval inspired serif font */
  color: #eae7d8;                    /* Light parchment-like text */
  background-color: #1c1b1a;         /* Deep brown/black backdrop */
  line-height: 1.5;
  scroll-behavior: smooth;
}

/* ------------------------------
   ✒️ TYPOGRAPHY
---------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  color: #f4ecd9;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
  font-size: 1rem;
}

a {
  color: #c9aa71;                     /* Gold accent for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #e0c590;
}

/* ------------------------------
   📜 LISTS
---------------------------------*/
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ------------------------------
   🖼️ IMAGES
---------------------------------*/
img {
  max-width: 100%;
  display: block;
}

/* ------------------------------
   🔘 BUTTONS (BASE STYLE)
---------------------------------*/
button {
  font-family: inherit;
  font-size: 1rem;
  background-color: #3d352d;
  color: #f4ecd9;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #5b4b3e;
}

/* ------------------------------
   ✍️ FORMS (GLOBAL STYLES)
---------------------------------*/
input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #2a2928;
  color: #f4ecd9;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #aaa;
}

/* ------------------------------
   🧰 UTILITY CLASSES
---------------------------------*/
.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.full-width {
  width: 100%;
}

.margin-bottom {
  margin-bottom: 1rem;
}

.uppercase {
  text-transform: uppercase;
}

/* ------------------------------
   📱 RESPONSIVE MEDIA QUERIES
---------------------------------*/
@media (max-width: 768px) {
  body {
    font-size: 0.95rem;
  }

  .flex {
    flex-direction: column;
  }
}

/* ------------------------------
   📬 CONTACT FORM BLOCK
---------------------------------*/
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(26, 26, 26, 0.8);
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  margin: 2rem auto;
  color: #fff;
  font-family: 'Lora', serif;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
}

.contact-form button {
  background-color: #c9aa71;
  color: #1a1a1a;
  font-weight: bold;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
}

.contact-form button:hover {
  background-color: #e0c585;
}

/* ------------------------------
   🗺️ CONTACT SECTION WITH MAP
---------------------------------*/
.colormap-section {
  position: relative;
  background: url('/assets/images/goldmap.png') center center / cover no-repeat;
  min-height: 100vh;
  padding: 4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.colormap-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 27, 26, 0.7);
  z-index: 0;
}

.colormap-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  text-align: center;
  color: #f4ecd9;
}

/* ------------------------------
   📜 SCROLLABLE TERMS CONTAINER
---------------------------------*/
.scroll-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 3rem;
  background: url('/assets/images/parchment-texture.jpg') center center / cover no-repeat;
  border: 2px solid #c9aa71;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  color: #f4ecd9;
  font-family: 'Cinzel', serif;
}

/* ------------------------------
   🌟 CENTERING BLOCK
   Used for 404 or special pages
---------------------------------*/
.center-text {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  min-height: 100vh;
}


/* ========================================
   🌍 Button: Explore World of Varethyn
======================================== */
.button-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: 'Cinzel', serif;
  background-color: #c9aa71;
  color: #1a1a1a;
  border: 2px solid #c9aa71;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.button-link:hover {
  background-color: #1a1a1a;
  color: #c9aa71;
  border-color: #c9aa71;
}
