@import url('./assets/fonts/fonts.css');


body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  padding: 0;
  background: #f7faf7;
  color: #222;
}

h2 {
  color: #3a7d3a;
  margin: 0;
}

ul {
  padding-left: 1.2em;
}

/* Header styles */

header {
  background: linear-gradient(90deg, #3a7d3a 0%, #6fcf97 100%);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
}

.header-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
} 

.name-flex {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 10px;
  margin-top: 5px;
}

header h1 {
  font-size: 2.4em;
  font-weight: 400;
  margin: 0;
}

.subtitle {
  font-size: 1.1em;
  font-weight: 400;
}

.logo {
  width: 400px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(60,120,60,0.08);
}

.name-plate {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

/* main and section styles */
main {
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

.banner-img {
  width: 100%;
  max-width: 100%;
}

section {
  max-width: 700px;
  margin: 1rem auto 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(60, 120, 60, 0.08);
  padding: 1.5rem 1.5rem;
}

section h1, section h3 {
  color: #3a7d3a;
}

section ol {
  padding-left: 1.2em;
  margin-bottom: 1.5rem;
}

section li {
  margin-bottom: 0.7em;
}

.blog-img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(60, 120, 60, 0.10);
  background: #eafbe6;
  margin: 1rem auto;
}

.section-img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(60, 120, 60, 0.10);
}

blockquote {
  font-style: italic;
  color: #3a7d3a;
  margin: 1.5em auto;
  background: #f7faf7;
  border-left: 4px solid #6fcf97;
  padding: 0.7em 1em;
  border-radius: 12px;
  text-align: center;
  max-width: 700px;
  width: 100%;
  box-sizing: border-box;
}

/* Footer styles */
footer {
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  background: #eafbe6;
  color: #3a7d3a;
  font-size: 1em;
  border-top: 1px solid #d0e8d0;
}

/* Welcome section */
.welcome-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.welcome-text {
  flex: 2 1 300px;
  min-width: 220px;
}

.welcome-img {
  flex: 1 1 180px;
  width: 180px;
  max-width: 240px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(60, 120, 60, 0.10);
  object-fit: cover;
  background: #eafbe6;
  margin-bottom: 1rem;
  display: block;
  align-self: center;
}

/* Contact section */
.contact a {
  color: #3a7d3a;
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

/* Social links */
.social-links img {
  cursor: pointer;
}

.social-links-footer {
  margin-bottom: 1.5rem;
}

/* Header menu and drawer menu styles */
.drawer-toggle {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  z-index: 1001;
  cursor: pointer;
  display: block;
}

.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 220px;
  background: #fff;
  box-shadow: 2px 0 12px rgba(60,120,60,0.10);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 1000;
  padding-top: 3.5rem;
  display: none;
  right: unset;
  margin: 0;
  border-left: none;
}

.header-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
}

.header-menu a {
  color: #fff;
  font-size: 1.15em;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.3em;
  transition: color 0.2s;
}

.header-menu a:hover {
  color: #fff;
}

.header-menu a::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: #795809;
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.header-menu a:hover::after {
  opacity: 1;
}

.header-menu a.active::after {
  opacity: 1;
}

body.drawer-open {
  overflow: hidden;
  position: fixed;
  width: 100vw;
}

body.drawer-open .app-drawer {
  transform: translateX(0);
  display: block;
}

body.drawer-open .drawer-toggle {
  color: #3a7d3a;
}

.app-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-drawer li {
  margin: 1.5rem 0 1.5rem 1.5rem;
}

.app-drawer a {
  color: #3a7d3a;
  font-size: 1.2em;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  position: relative;
  padding-bottom: 0.3em;
  transition: color 0.2s;
}

.app-drawer a.active::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: #795809;
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 1;
}

.app-drawer a:hover::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: #795809;
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 1;
  transition: opacity 0.2s;
}

/* Responsive styles */
@media (max-width: 500px) {
  
  header h1 {
    font-size: 1.5em;
  }

  .subtitle {
    font-size: 0.8em;
  }

  .name-flex {
    
    flex-flow: column nowrap;
    gap: 0px;
    margin-top: 0px;
  }

  .welcome-flex {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  
  header {
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
  }

  .logo {
    width: 50%;
  }
}

@media (max-width: 700px) {  
  /* Hide header-menu on small screens, show app-drawer */
  .header-menu {
    display: none !important;
  }
  .app-drawer {
    display: block;
  }

  main {
    margin-right: 0;
    margin-left: 0;
  }

  section {
    border-radius: 0;
  }

  .section-img {
    border-radius: 0;
  }
}

@media (min-width: 701px) {
  /* Show header-menu, hide app-drawer and drawer-toggle */
  .header-menu {
    display: flex !important;
  }
  .app-drawer {
    display: none !important;
  }
  .drawer-toggle {
    display: none !important;
  }
}
