/* 
   GreenPress - Sustainable WordPress Hosting
   Main Stylesheet
*/

/* Base Styles and Variables */
:root {
  --primary-color: #2ecc71;
  --primary-dark: #27ae60;
  --secondary-color: #3498db;
  --secondary-dark: #2980b9;
  --text-color: #333333;
  --text-light: #666666;
  --background-light: #f9f9f9;
  --background-dark: #1a2a3a;
  --white: #ffffff;
  --gray-light: #f4f4f4;
  --gray: #dddddd;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

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

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--primary-color);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--white);
}

.btn-text {
  color: var(--primary-color);
  padding: 0;
  background: transparent;
}

.btn-text:hover {
  color: var(--primary-dark);
}

.btn-text .arrow {
  transition: var(--transition);
  display: inline-block;
}

.btn-text:hover .arrow {
  transform: translateX(5px);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

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

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  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%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* Main Content Spacing */
main {
  padding-top: 80px; /* Account for fixed header */
}

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header h2 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f9f9f9 0%, #e3f2fd 100%);
  padding: 100px 0 80px;
}

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

.hero-content {
  flex: 1;
  padding-right: 40px;
}

.hero-content h1 {
  margin-bottom: 20px;
  font-size: 3.5rem;
  line-height: 1.2;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

/* Key Stats Section */
.key-stats {
  background-color: var(--background-light);
  padding: 40px 0;
}

.key-stats .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
}

/* Overview Section */
.overview-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.overview-text {
  flex: 1;
}

.overview-image {
  flex: 1;
}

/* Key Innovations Section */
.key-innovations {
  background-color: var(--background-light);
}

.innovations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.innovation-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.innovation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.innovation-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(46, 204, 113, 0.1);
  border-radius: 50%;
}

.innovation-icon img {
  width: 40px;
  height: 40px;
}

.innovation-card h3 {
  margin-bottom: 15px;
}

.innovations-cta {
  text-align: center;
  margin-top: 20px;
}

/* Business Model Section */
.pricing-tiers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.pricing-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--primary-color);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-header {
  padding: 30px;
  text-align: center;
  background-color: var(--background-light);
  border-bottom: 1px solid var(--gray);
}

.pricing-header h3 {
  margin-bottom: 15px;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-features {
  padding: 30px;
}

.pricing-features ul {
  list-style: none;
}

.pricing-features ul li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.pricing-features ul li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.pricing-cta {
  padding: 0 30px 30px;
  text-align: center;
}

.business-cta {
  text-align: center;
}

/* Implementation Section */
.implementation {
  background-color: var(--background-light);
}

.implementation-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.implementation-image {
  flex: 1;
}

.implementation-text {
  flex: 1;
}

.implementation-phase {
  margin-bottom: 30px;
}

.implementation-phase h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.implementation-note {
  font-style: italic;
  color: var(--text-light);
  margin: 30px 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  margin-bottom: 20px;
}

.cta-section p {
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
}

.cta-section .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
  background-color: var(--background-dark);
  color: var(--white);
  padding: 80px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 60px;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  flex: 2;
  justify-content: space-around;
}

.footer-links-column {
  margin-bottom: 30px;
  min-width: 150px;
}

.footer-links-column h4 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-links-column ul {
  list-style: none;
}

.footer-links-column ul li {
  margin-bottom: 10px;
}

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

.footer-links-column ul li a:hover {
  color: var(--white);
}

.footer-contact {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
}

.footer-contact h4 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-contact p {
  margin-bottom: 10px;
  color: var(--gray);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
}

.social-link img {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero .container,
  .overview-content,
  .implementation-content {
    flex-direction: column;
  }
  
  .hero-content,
  .overview-text,
  .implementation-text {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .pricing-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .key-stats .container {
    flex-direction: column;
  }
  
  .stat-card {
    margin-bottom: 20px;
  }
  
  .innovations-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    margin-bottom: 0;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu ul li {
  margin-bottom: 15px;
}

.mobile-menu ul li a {
  color: var(--text-color);
  font-weight: 500;
  display: block;
  padding: 10px 0;
}

.mobile-menu ul li a.active {
  color: var(--primary-color);
}

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

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.hidden {
  display: none;
}

/* Shared design-token aliases used by all interactive components */
:root {
  --color-primary: var(--primary-color);
  --color-primary-dark: var(--primary-dark);
  --color-primary-light: #e9f8ef;
  --color-secondary: var(--secondary-color);
  --color-text: var(--text-color);
  --color-white: var(--white);
  --color-border: var(--gray);
  --color-dark: var(--background-dark);
}

/* Consistent internal-page rhythm */
.page-header { padding: 110px 0 70px; background: linear-gradient(135deg, #f9f9f9 0%, #e3f2fd 100%); }
.page-header h1 { margin-bottom: 14px; }
.page-header p { max-width: 760px; margin: 0 auto; color: var(--text-light); }
main > section:not(.hero-section) { min-height: 0; }

/* Keep the public showcase visually consistent regardless of OS dark-mode preference. */
body { background-color: var(--white); color: var(--text-color); }
h1, h2, h3, h4, h5, h6 { color: var(--text-color); }
.alt-bg, .key-innovations, .implementation { background-color: var(--background-light); }
.page-header h1, .page-header h2, .page-header h3 { color: var(--text-color); }
.card, .pricing-card, .feature-card, .testimonial-card, .team-member, .faq-item { background-color: var(--white); color: var(--text-color); }
input, textarea, select { background-color: var(--white); border-color: var(--gray); color: var(--text-color); }
