@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lora:wght@400;600&display=swap');

/* FOOTER AND NAV BAR */
.nav-container {
  background-color: #5a7247;
  color: white;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

.nav-container ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.nav-container li {
  position: relative;
  margin: 0 1rem;
}

.nav-container a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-container a:hover {
  background-color: #3a4a2d;
  border-radius: 4px;
}

.nav-container a.active {
  background-color: #345d34;
  border-radius: 4px;
}


.dropdown-content {
  display: none;
  position: absolute;
  background-color: #5a7247;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}

.dropdown-content a {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #5a7247;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

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

footer {
  background-color: #5a7247;
  color: white;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: white;
  display: inline-block;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.2);
}

.footer-social svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-copyright {
  text-align: center;
  font-size: 0.9rem;
}

.footer-copyright p {
  margin: 0.5rem 0;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #345d34; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  cursor: pointer;
}

.back-to-top.visible {
  visibility: visible;
}

.back-to-top:hover {
  background-color: #2a4b2a; 
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: white;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-container ul.nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0;
  }
  
  .nav-container ul.nav-menu.mobile-open {
    display: flex;
  }
  
  .nav-container li {
    margin: 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-container a {
    padding: 1rem;
  }
  
  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    display: none;
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  .dropdown-content.mobile-open {
    display: block;
  }
  
  .dropdown:hover .dropdown-content {
    display: none;
  }
  
  .nav-container a:hover {
    background-color: transparent;
  }
  
  .nav-container a.active {
    background-color: #345d34;
  }
}

/* HOME PAGE */
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: scroll;
    font-family: 'Karla', sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.home-hero {
    position: relative;
    margin-bottom: 40px;
}

.home-hero .hero-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    filter: brightness(0.7);
}

.home-hero .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
}

.home-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Lora', serif;
}

.content-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.intro-text {
    text-align: center;
    margin-bottom: 30px;
}

.last-adventure {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.last-adventure h3 {
    margin-top: 0;
}

.poll-container {
    text-align: center;
    margin: 40px 0;
}

.poll-options button {
    padding: 10px 20px;
    margin: 0 10px;
    background-color: #345d34;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.poll-options button:hover {
    background-color: #45a049;
}

.ps-note {
    text-align: center;
    font-style: italic;
    margin: 30px 0;
}

.image-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3; 
}

.image-item:hover {
    transform: scale(1.05) translateY(-5px);
}

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

@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 2rem;
    }
    
    .home-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .poll-options button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* GEAR PAGE  */
.gear-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px 80px;
}

.gear-nav {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    position: sticky;
    top: 10px;
    z-index: 100;
}

.gear-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.gear-categories a {
    background-color: #5a7247;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.gear-categories a:hover {
    background-color: #3a4a2d;
    transform: translateY(-2px);
}

.gear-section {
    margin: 50px 0;
    padding-top: 20px;
}

.gear-item {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gear-item h3 {
    color: #3a4a2d;
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.gear-weight {
    position: absolute;
    top: 25px;
    right: 25px;
    background-color: #f1f8e9;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #5a7247;
    font-weight: 600;
}

.gear-rating {
    color: #f39c12;
    font-size: 1.2rem;
    margin: 15px 0 10px;
    display: flex;
    align-items: center;
}

.gear-rating span {
    color: #666;
    font-size: 0.9rem;
    margin-left: 8px;
    font-weight: normal;
}

.gear-pros-cons {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.pros, .cons {
    flex: 1;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.pros h4 {
    color: #27ae60;
    margin-top: 0;
    font-size: 1.1rem;
}

.cons h4 {
    color: #e74c3c;
    margin-top: 0;
    font-size: 1.1rem;
}

.pros ul, .cons ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.pros li, .cons li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.mini-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mini-review {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.mini-review h3 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #333;
    font-family: 'Lora', serif;
    font-weight: 600;
}

.mini-review .gear-rating {
    margin: 5px 0;
    font-size: 1rem;
}

.mini-review p {
    margin: 10px 0 0 0;
    font-style: italic;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .gear-pros-cons {
        flex-direction: column;
        gap: 20px;
    }
    
    .gear-weight {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .mini-reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gear-categories {
        gap: 10px;
    }
    
    .gear-categories a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .gear-item {
        padding: 20px;
    }
    
    .gear-item h3 {
        font-size: 1.2rem;
    }
}

/* HIKE PAGE */

.hike-details {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.hike-banner img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hike-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
}

.hike-stats {
    flex: 1;
    min-width: 300px;
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hike-stats h2 {
    margin-top: 0;
    color: #3a4a2d;
    border-bottom: 2px solid #d4e0c6;
    padding-bottom: 10px;
}

.hike-stats p {
    margin: 12px 0;
    line-height: 1.5;
}

.hike-stats strong {
    color: #5a7247;
}

.hike-description {
    flex: 2;
    min-width: 300px;
}

.day-report {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #d4e0c6;
}

.day-report h3 {
    color: #3a4a2d;
}

.highlights-lowlights {
    background-color: #f9f9f7;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.highlight {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.highlight .icon {
    color: #5a7247;
    margin-right: 10px;
    font-weight: bold;
}

.directions {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}


@media (max-width: 768px) {
    .hike-info {
        flex-direction: column;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
}

/* ABOUT ME */
.about-hero {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
}

.hero-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    filter: brightness(0.8);
}

.about-hero h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    width: 80%;
    font-family: 'Playfair Display', serif;
}

#about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.about-text {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text .intro {
    font-size: 1.3rem;
    font-weight: 600;
    color: #3a4a2d;
}

.about-text .closing {
    font-style: italic;
    font-size: 1.2rem;
}

.hiker-stats {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    border: 1px solid #e0e0e0;
}

.hiker-stats h3 {
    text-align: center;
    color: #3a4a2d;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #5a7247;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

.social-links {
    text-align: center;
    margin-top: 50px;
}

.social-links h3 {
    color: #3a4a2d;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.social-icon span {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .social-icons {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

/* CONTACT ME */
.contact-hero {
    position: relative;
    margin-bottom: 40px;
}

.contact-hero .hero-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    filter: brightness(0.7);
}

.contact-hero .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
}

.contact-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.contact-content {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    color: #3a4a2d;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.contact-info p {
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-methods {
    display: grid;
    gap: 20px;
}

.contact-card {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: #5a7247;
    margin: 0 0 10px 0;
}

.contact-card p {
    margin: 0;
    color: #666;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
    color: #3a4a2d;
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5a7247;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background-color: #5a7247;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #3a4a2d;
    transform: translateY(-2px);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(3px);
}

#formResponse {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        min-width: 100%;
    }
}