/* Basic responsive site styling for EV Cell Tech */
:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: #349963;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: #111827;
}

.brand img,
.brand .site-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 720px) {
  .brand img,
  .brand .site-logo {
    width: 160px;
  }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brand img,
  .brand .site-logo {
    /* keep visual size consistent on high-DPI */
    width: 220px;
    max-width: 100%;
  }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero {
  background: linear-gradient(135deg, rgba(52,153,99,0.85) 0%, rgba(52,153,99,0.7) 100%), url("images/charger-home.jpg") center/cover no-repeat;
  background-blend-mode: overlay;
  color: #ffffff;
  padding: 5rem 0 4rem;
}

.hero-content {
  display: grid;
  gap: 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  opacity: 0.92;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 4rem);
  line-height: 1.05;
}

.hero p {
  max-width: 720px;
  margin: 0;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.section {
  padding: 4rem 0;
}

.page-header h1 {
  margin-top: 0;
  font-size: 2.5rem;
}

.page-header p {
  max-width: 720px;
  font-size: 1.05rem;
}

.highlights {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  background: #349963;
  color: #ffffff;
  padding: 2rem;
  border-radius: 0.75rem;
}

.highlights h2,
.highlights h3,
.highlights p,
.highlights a {
  color: #ffffff;
}

.highlights a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.highlights .button.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #ffffff;
}

.highlights .button.secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Benefits section with five-card layout */
.benefits-section {
  text-align: center;
}

.benefits-section h2 {
  margin-bottom: 2.5rem;
  font-size: 2rem;
  color: #111827;
}

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

.benefit-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 180ms ease;
  text-align: left;
}

.benefit-card:hover {
  box-shadow: 0 10px 25px rgba(31,41,55,0.08);
  border-color: #349963;
  transform: translateY(-2px);
}

.benefit-card h3 {
  margin: 0 0 0.75rem 0;
  color: #349963;
  font-size: 1.1rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
}

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

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

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

.product-image,
.product-card-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
  margin: 1.5rem 0;
}

.product-card-image {
  margin: 0 0 1rem;
}

.product-card,
.certification-list article,
.content-block,
.contact-form-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem;
}

.product-details ul,
.certification-list ul,
.content-block ul {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.product-details li,
.certification-list li,
.content-block li {
  margin-bottom: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.0rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 180ms ease;
}

.button.primary {
  background: #349963;
  color: #ffffff;
}

.button.primary:hover {
  background: #2a7f52;
}

.button.secondary {
  background: #ffffff;
  color: #349963;
  border-color: rgba(52,153,99,0.12);
}

.button.secondary:hover {
  background: rgba(52,153,99,0.06);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: #f8fafc;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-response {
  color: #065f46;
  min-height: 1.2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 720px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }
}

/* Homepage feature row */
.feature-row {
  background: #ffffff;
  padding: 2.5rem 0;
}

.feature-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.feature-content {
  flex: 1 1 50%;
}

.feature-image {
  flex: 1 1 50%;
}

.feature-image img {
  width: 50%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(31,41,55,0.06);
  display: block;
  margin: 0 auto;
}

/* Product thumbnails on homepage highlights */
.product-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.product-thumb {
  width: 100px;
  height: auto;
  border-radius: 0.5rem;
  flex: 0 0 72px;
  object-fit: cover;
}

.product-info h3 {
  margin: 0 0 0.25rem 0;
}

@media (max-width: 720px) {
  .feature-inner {
    flex-direction: column-reverse;
  }

  .feature-content {
    text-align: left;
  }
  .feature-image img {
    width: 100%;
  }
}
