/* WeCharge.club - Main Stylesheet */

/* Base Styles and Variables */
:root {
  --primary-color: #000000;
  --secondary-color: #333333;
  --accent-color: #0077cc; /* Blue replacing orange */
  --accent-color-light: #4da6ff; /* Light blue for hover states */
  --background-color: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --text-color: #1a1a1a;
  --transition-speed: 0.3s;
  --transition-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

a:hover {
  opacity: 0.8;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

section {
  padding: 6rem 0;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed) var(--transition-function);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  margin: 10px 0;
}

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

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

nav ul li a {
  font-weight: 500;
  position: relative;
}

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

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background-size: cover;
  background-position: center;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  grid-column: 1 / 8;
  position: relative;
  z-index: 2;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.hero-cta {
  margin-top: 2rem;
}

/* About Section */
.about {
  background-color: var(--background-color);
}

.about-content {
  padding-right: 2rem;
}

.about .feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-function);
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  border: 1px solid var(--accent-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
  background-color: var(--light-gray);
}

.feature-card {
  padding: 2rem;
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed) var(--transition-function);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

/* Locations Section */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.location-item {
  padding: 1.5rem;
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  text-align: center;
}

/* Benefits Section */
.benefits-list {
  margin: 2rem 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.benefit-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* Call to Action Section */
.cta-section {
  background-color: var(--accent-color);
  color: white;
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-section .btn-secondary {
  background-color: white;
  color: var(--accent-color);
  border-color: white;
}

.cta-section .btn-primary {
  background-color: transparent;
  color: white;
  border-color: white;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-speed) var(--transition-function);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-links h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

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

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

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
  color: white;
}

/* Footer contact email - explicitly white */
.footer-contact a {
  color: white;
  font-weight: 500;
}

.footer-contact a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

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

.animate-fade-in {
  animation: fadeIn 0.8s var(--transition-function) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Page Transitions */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  z-index: 9999;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.6s var(--transition-function);
}

.page-transition.active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  section { padding: 5rem 0; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  p { font-size: 1rem; }
  
  .container { padding: 0 1.5rem; }
  .grid { gap: 1.5rem; }
  .hero-content { grid-column: 1 / 13; }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--background-color);
    overflow: hidden;
    transition: height var(--transition-speed) var(--transition-function);
    z-index: 1000;
  }
  
  nav.active {
    height: calc(100vh - 80px);
    border-top: 1px solid var(--medium-gray);
  }
  
  nav ul {
    flex-direction: column;
    padding: 2rem;
  }
  
  nav ul li {
    margin: 1rem 0;
  }
  
  /* About section mobile fixes */
  .about-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .about .grid > div[style*="grid-column: 1 / 7"],
  .about .grid > div[style*="grid-column: 8 / 13"] {
    grid-column: 1 / 13 !important;
  }
  
  /* Fix grid layout for mobile */
  .about-content,
  .about-image,
  .animate-fade-in[style*="grid-column: 1 / 6"],
  .animate-fade-in[style*="grid-column: 7 / 13"],
  .animate-fade-in[style*="grid-column: span 4"] {
    grid-column: 1 / 13 !important;
    margin-bottom: 2rem;
  }
  
  /* Adjust spacing for mobile */
  section {
    padding: 4rem 0;
  }
  
  /* Ensure images are responsive */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Adjust hero height for mobile */
  .hero {
    height: 90vh;
  }
  
  /* Improve form layout on mobile */
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  input, textarea, select, .btn {
    padding: 0.875rem;
  }
  
  /* Adjust CTA buttons for mobile */
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }
  .container { padding: 0 1.25rem; }
  section { padding: 3.5rem 0; }
  
  /* Further optimize for small screens */
  .hero {
    height: 85vh;
  }
  
  .hero-tagline {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .locations-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .location-item {
    padding: 1rem;
  }
  
  .benefit-item {
    margin-bottom: 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    margin-bottom: 2rem;
  }
  
  .footer-logo img {
    margin: 0 auto 1rem;
  }
}
