/* ==========================================
   VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
  /* Colors */
  --primary: #88A87E;
  --primary-dark: #6A8A60;
  --secondary: #4A7C7E;
  --secondary-dark: #3A6264;
  --background: #FAFAF8;
  --surface: #FFFFFF;
  --text-main: #2C3333;
  --text-muted: #5C6666;
  --success: #2E7D32;
  --error: #E60023;
  --border: #E8E4DF;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-overlay: linear-gradient(to bottom, rgba(44, 51, 51, 0), rgba(44, 51, 51, 0.05));

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 2rem;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

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

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal,
.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active,
.reveal-delay-1.active,
.reveal-delay-2.active,
.reveal-delay-3.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1.active {
  transition-delay: 0.2s;
}

.reveal-delay-2.active {
  transition-delay: 0.4s;
}

.reveal-delay-3.active {
  transition-delay: 0.6s;
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

/* ==========================================
   COMPONENTS: BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(136, 168, 126, 0.4);
  animation: pulse-green 3s infinite;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(136, 168, 126, 0.6);
  animation: none;
  color: white;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(136, 168, 126, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(136, 168, 126, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(136, 168, 126, 0);
  }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: white;
  color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.btn-large {
  padding: 1.1rem 2.8rem;
  font-size: 1.1rem;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

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

.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-list a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

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

.nav-list a:hover {
  color: var(--primary);
}

.nav-list a:hover::after {
  width: 100%;
}

.newsletter-cta {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.newsletter-cta:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 124, 126, 0.3);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  background: var(--gradient-primary);
  color: white;
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease backwards;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 300;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
  padding: 6rem 0;
}

.intro-section {
  background: white;
  text-align: center;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
}

.intro-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.value-item {
  padding: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--background);
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.value-item:hover {
  transform: translateY(-8px);
  background: white;
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.value-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 1rem auto 0;
  border-radius: 3px;
}

/* ==========================================
   CARDS
   ========================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.post-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.post-card-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-category {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(136, 168, 126, 0.1);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
  align-self: flex-start;
}

.post-card h3 a {
  color: var(--text-main);
  background: linear-gradient(to right, var(--primary), var(--secondary));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s;
}

.post-card h3 a:hover {
  color: var(--primary);
  background-size: 100% 2px;
}

.post-meta {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.read-more {
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.read-more:hover {
  gap: 0.6rem;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, #2C3333 0%, #1A2020 100%);
  color: white;
  text-align: center;
  padding: 8rem 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  margin-bottom: 3rem;
}

/* ==========================================
   FORMS
   ========================================== */
.contact-form,
.newsletter-form {
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-group label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.8rem;
  display: block;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-fast);
  background: var(--background);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(136, 168, 126, 0.1);
}

/* ==========================================
   MODAL
   ========================================== */
.modal-overlay {
  background: rgba(44, 51, 51, 0.8);
  backdrop-filter: blur(8px);
}

.newsletter-modal {
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 550px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content.active .newsletter-modal {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ==========================================
   MOBILE & RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .nav-list {
    display: none;
    /* Mobile menu logic via JS */
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .main-nav.active .nav-list {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
}