/* Base Styles and Variables */
:root {
  --primary-color: #0056a6; /* Blue - primary brand color */
  --secondary-color: #2ecc71; /* Green - represents sustainability */
  --accent-color: #ffcc00; /* Yellow - represents energy */
  --dark-color: #222831; /* Dark shade for text */
  --light-color: #f5f5f5; /* Light background */
  --white: #ffffff;
  --gray: #757575;
  --transition: all 0.3s ease;
  --border-radius: 4px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

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

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

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -1rem;
  margin-left: -1rem;
}

.col {
  flex: 1;
  padding: 0 1rem;
}

/* For various column widths */
.col-50 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 1rem;
}

.col-33 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 1rem;
}

.col-25 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .col, .col-50, .col-33, .col-25 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

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

.section {
  padding: 5rem 0;
}

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

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.logo img, .logo svg {
  height: 40px;
  margin-right: 0.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

nav li {
  margin-left: 1.5rem;
}

nav a {
  color: var(--dark-color);
  font-weight: 500;
}

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

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

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    text-align: center;
    box-shadow: var(--box-shadow);
  }

  nav ul.show {
    display: flex;
  }

  nav li {
    margin: 0;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
}

/* Hero Section */
.hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
}

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

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

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

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

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

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

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-5px);
}

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

.feature-icon svg {
  width: 60px;
  height: 60px;
}

/* About Section */
.about-img {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.about-img img, 
.about-img svg {
  width: 100%;
  display: block;
}

/* Services Section */
.services {
  background-color: var(--light-color);
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
}

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

.service-icon svg {
  width: 50px;
  height: 50px;
}

/* Testimonials */
.testimonial {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  overflow: hidden;
}

.testimonial-author-img img,
.testimonial-author-img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info h4 {
  margin: 0;
  font-size: 1rem;
}

.testimonial-author-info p {
  margin: 0;
  color: var(--gray);
  font-size: 0.875rem;
}

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

.cta h2 {
  color: var(--white);
  margin-bottom: 2rem;
}

.cta-form {
  max-width: 500px;
  margin: 0 auto;
}

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

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: var(--white);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo img,
.footer-logo svg {
  height: 40px;
  margin-right: 0.5rem;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 50px;
  background-color: var(--accent-color);
}

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

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

.footer-links a {
  color: #bbb;
  transition: var(--transition);
}

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

.footer-contact p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.footer-contact i,
.footer-contact svg {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.social-links {
  display: flex;
  margin-top: 1.5rem;
}

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

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

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: #bbb;
}

/* Blog */
.blog-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-img {
  height: 200px;
  overflow: hidden;
}

.blog-img img,
.blog-img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-img img,
.blog-card:hover .blog-img svg {
  transform: scale(1.1);
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.blog-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  margin-bottom: 1rem;
}

/* Single Blog Post */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.blog-post-header {
  margin-bottom: 2rem;
}

.blog-post-meta {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.blog-post-img {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.blog-post-img img,
.blog-post-img svg {
  width: 100%;
  display: block;
}

.blog-post-content {
  line-height: 1.8;
}

.blog-post-content h2,
.blog-post-content h3 {
  margin-top: 2rem;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  padding: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
  display: none;
}

.cookie-settings-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cookie-settings-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

.cookie-settings-body {
  margin-bottom: 1.5rem;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #eeeeee;
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-info {
  flex: 1;
}

.cookie-option h4 {
  margin: 0 0 0.5rem 0;
}

.cookie-option p {
  margin: 0;
  color: var(--gray);
  font-size: 0.875rem;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition);
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: var(--primary-color);
}

input:checked + .cookie-slider:before {
  transform: translateX(26px);
}

.cookie-settings-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Newsletter Thank You Page */
.thank-you-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.thank-you-icon svg {
  width: 100px;
  height: 100px;
}

/* Utilities */
.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; }

.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  text-align: center;
  padding: 8rem 0 4rem;
}

.page-header h1 {
  color: var(--white);
}
