/*
Theme Name: Wanada
Description: A custom WordPress theme for Wanada
Version: 1.0.0
Author: Your Name
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

/* Header Styles */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #e1e1e1;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.site-title:hover {
  color: #0073aa;
}

/* Navigation Styles */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: #0073aa;
}

/* Main Content Styles */
.site-main {
  /* padding: 2rem 0; */
  min-height: 60vh;
}

.page-content,
.entry-content {
  line-height: 1.8;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
}

.page-content p,
.entry-content p {
  margin-bottom: 1.5rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: #333;
}

.mobile-menu-toggle:hover {
  color: #0073aa;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #0073aa;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

#back-to-top:hover {
  background-color: #005177;
}

/* Form Error Styles */
.error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 0;
  left: 6px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  z-index: 999999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #e1e1e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .main-navigation li {
    border-bottom: 1px solid #f0f0f0;
  }

  .main-navigation li:last-child {
    border-bottom: none;
  }

  .main-navigation a {
    display: block;
    padding: 1rem 2rem;
    text-align: left;
  }

  .container {
    padding: 0 15px;
  }

  .entry-title {
    font-size: 2rem;
  }
}
