/* 
 * Awe Homestead - Main Stylesheet
 * Brazilian Sustainable Agriculture Website
 * https://aweehomestead.com
 */

/* Base Styles and Reset */
:root {
  --primary-color: #2c7744;
  --secondary-color: #f39c12;
  --accent-color: #e67e22;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --gray-color: #95a5a6;
  --text-color: #333;
  --white-color: #ffffff;
  --success-color: #27ae60;
  --warning-color: #e67e22;
  --danger-color: #e74c3c;
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 10px = 1rem */
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

ul, ol {
  list-style: none;
  padding-left: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  color: var(--gray-color);
  font-size: 1.8rem;
}

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white-color);
  padding: 2rem 0;
  box-shadow: var(--box-shadow);
  z-index: 100;
  transition: var(--transition);
}

header.scrolled {
  padding: 1rem 0;
}

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

.logo a {
  display: block;
}

.logo img {
  height: 60px;
  width: auto;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 3rem;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1.6rem;
  padding: 0.5rem 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 6px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://source.unsplash.com/random/1920x1080/?brazilian,farm,agriculture');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white-color);
  padding-top: 8rem;
}

.hero h1 {
  font-size: 5.6rem;
  margin-bottom: 2rem;
  animation: fadeInDown 1s;
}

.hero p {
  font-size: 2.4rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s;
}

.hero .btn {
  animation: fadeInUp 1.2s;
}

/* About Section */
.about {
  padding: 10rem 0;
  background-color: var(--light-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-item {
  background-color: var(--white-color);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
  display: block;
  font-size: 4.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-text {
  font-size: 1.6rem;
  color: var(--gray-color);
}

/* Services Section */
.services {
  padding: 10rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}

.service-card {
  background-color: var(--white-color);
  padding: 4rem 3rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  margin-bottom: 2rem;
  font-size: 4.8rem;
  color: var(--primary-color);
}

.service-card h3 {
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.service-card p {
  color: var(--gray-color);
  font-size: 1.6rem;
}

/* Agriculture Section */
.agriculture {
  padding: 10rem 0;
  background-color: var(--light-color);
}

.agriculture-content {
  max-width: 80rem;
  margin: 0 auto;
}

.agriculture-text h3 {
  color: var(--primary-color);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.agriculture-text ul {
  margin: 2rem 0;
  list-style-type: disc;
  padding-left: 2rem;
}

.agriculture-text li {
  margin-bottom: 1rem;
}

/* Sustainability Section */
.sustainability {
  padding: 10rem 0;
}

.sustainability-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.sustainability-feature {
  background-color: var(--white-color);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
}

.sustainability-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.sustainability-feature h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Games Section */
.games {
  padding: 10rem 0;
  background-color: var(--light-color);
}

.games-content {
  max-width: 80rem;
  margin: 0 auto;
}

.games-links {
  margin-top: 3rem;
  padding: 3rem;
  background-color: var(--white-color);
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.games-links p {
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.games-links a {
  font-weight: 600;
  color: var(--primary-color);
}

.games-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Contact Section */
.contact {
  padding: 10rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  background-color: var(--white-color);
  padding: 4rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid var(--gray-color);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 1.6rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.info-item {
  background-color: var(--white-color);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.info-item h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 8rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-logo img {
  margin-bottom: 2rem;
}

.footer-logo p {
  font-size: 1.6rem;
  color: var(--gray-color);
}

.footer-links h3,
.footer-newsletter h3 {
  color: var(--white-color);
  margin-bottom: 2.5rem;
  position: relative;
}

.footer-links h3::after,
.footer-newsletter h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 0;
}

.footer-links ul li {
  margin-bottom: 1rem;
}

.footer-links ul li a {
  color: var(--gray-color);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-newsletter p {
  margin-bottom: 2rem;
}

.footer-newsletter form {
  display: flex;
}

.footer-newsletter input {
  flex: 1;
  padding: 1.2rem;
  border: none;
  border-radius: 5px 0 0 5px;
  font-family: var(--font-body);
  font-size: 1.4rem;
}

.footer-newsletter button {
  padding: 0 2rem;
  border-radius: 0 5px 5px 0;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.footer-newsletter button:hover {
  background-color: var(--accent-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
  display: inline-block;
  margin-left: 1.5rem;
  color: var(--gray-color);
  font-size: 1.8rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Icons */
.icon-farming::before {
  content: "🌱";
  font-size: 3.5rem;
}

.icon-education::before {
  content: "📚";
  font-size: 3.5rem;
}

.icon-tech::before {
  content: "💻";
  font-size: 3.5rem;
}

.icon-community::before {
  content: "👥";
  font-size: 3.5rem;
}

.icon-facebook::before {
  content: "📘";
  font-size: 2.5rem;
}

.icon-instagram::before {
  content: "📸";
  font-size: 2.5rem;
}

.icon-twitter::before {
  content: "🐦";
  font-size: 2.5rem;
}

.icon-linkedin::before {
  content: "💼";
  font-size: 2.5rem;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media screen and (max-width: 1024px) {
  html {
    font-size: 55%;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    margin-top: 4rem;
  }
  
  .contact-info {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 50%;
  }
  
  h1 {
    font-size: 4rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  .hero h1 {
    font-size: 4.5rem;
  }
  
  .hero p {
    font-size: 2rem;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    flex-direction: column;
    align-items: center;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 1rem 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .sustainability-features {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-social {
    margin-top: 2rem;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 45%;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .footer-newsletter form {
    flex-direction: column;
  }
  
  .footer-newsletter input {
    border-radius: 5px;
    margin-bottom: 1rem;
  }
  
  .footer-newsletter button {
    border-radius: 5px;
    width: 100%;
  }
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600;700&display=swap');
