/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comfortaa', sans-serif;
  background-color: #F4FFEB;
  color: #3a3a2e;
  line-height: 1.6;
  padding-bottom: 60px;
}

/* Header Banner */
header {
  background-image: url('images/banner-forest2.png');
  background-size: cover;
  background-position: center -380px;

  height: 100px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #88a86b;
}

.header-inner {  
  background: rgba(0,0,0,0.2);
  /* backdrop-filter: blur(2px); */
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* allow full height flex children */
  padding: 0 20px;
  height: 100%;
  position: relative;
}

.brand {
  display: flex;
  align-items: center; /* ✅ centers logo + title-group vertically */
}

.brand img {
  height: 80px;
  margin-right: 10px;
}

.title-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.title-main {
  font-size: 2em;
  font-weight: bolder;
  text-transform: uppercase;  
  color: #fff;
  text-shadow: 0 0 3px #2f3c1e, 3px 0 6px #000;
}

.title-sub {
  font-size: 0.7em;
  font-weight: bolder;
  color: #fff;
  text-shadow: 0 0 1px #2f3c1e, 1px 0 4px #000;
  margin-top: 2px;
  display: block;
  text-transform: uppercase; /* Optional: balances spacing */
  letter-spacing: 0.15em;     /* Adjust to fill the width */
  text-align: center;          /* Or center, depending on effect */
  white-space: nowrap;
}


/* Navigation */
nav {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  position: absolute;
  bottom: 5px;
  right: 20px;
}

nav a {
  text-decoration: none;
  color: #fff;
  text-shadow: 0 0 8px #2f3c1e, 0 0 12px #000;
  border-bottom: none;  
  font-weight: bold;
  transition: color 0.2s ease;
  margin-bottom:-2px;
}

nav a:hover {
  margin-bottom:-4px;
  color: #8fb48d;
  border-bottom: 2px dashed #92b36b;  
}

/* Main Content Area */
main {
  padding: 30px 20px;
  max-width: 900px;
  margin: 0 auto;
}

a {
  color: #2d5d34;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px dashed #92b36b;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #4f844d;
  border-color: #b7d98c;
}

/* Section Headings */
h2, h3 {
  color: #2a451b;
  margin-bottom: 12px;
}

/* Lists and Paragraphs */
ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

p {
  margin-bottom: 15px;
}

/* Critter Profiles */
.critter-profile {
  background-color: #f7fff0;
  border-left: 6px solid #92b36b;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* Contact Page */
.contact-info p {
  margin-bottom: 10px;
}

.contact-form {
  margin-top: 20px;
}

.contact-form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #aac592;
  border-radius: 4px;
  margin-top: 5px;
}

.contact-form button {
  margin-top: 15px;
  padding: 10px 16px;
  background-color: #8bbf75;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 4px;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Footer */

.nowrap { white-space: nowrap; }
footer {
  background-color: #d6eac4;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9em;
  color: #526842;
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 2px solid #a3c293;
}
  @media (max-width: 768px) {
    header img {
      display: inline-block;
    }
    
    nav {
      display: flex;
      gap: 10px;
      align-items: flex-end;
      position: absolute;
      bottom: -30px;
      right: 20px;
    }   

    h2, h3 {
      color: #2a451b;
      margin-bottom: 12px;
      margin-top:25px;
    }    
}