/* Base styles */
:root {
  --bg: #4a90e2;
  --text: #ffffff;
  --muted: #b8d4f0;
  --brand: #2dbb6f;
  --brand-dark: #199256;
  --panel: #3a7bd5;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(1, 3, 5, 0.85), rgba(74,144,226,0));
  backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  position: relative;
}
.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.brand-logo { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(45,187,111,0.25)); }
.brand-name { font-weight: 800; letter-spacing: 0.2px; }
.nav { 
  display: flex; 
  align-items: center; 
  gap: 24px;
}
.nav-left {
  position: absolute;
  right: 50%;
  margin-right: 80px;
  display: flex;
  gap: 24px;
}
.nav-right {
  position: absolute;
  left: 50%;
  margin-left: 80px;
  display: flex;
  gap: 24px;
}
.nav a { 
  color: var(--text); 
  text-decoration: none; 
  opacity: 0.9; 
  transition: color 0.3s ease;
  white-space: nowrap;
}
.nav a:hover { 
  color: var(--brand); 
}

/* Hero */
.hero { 
  position: relative; 
  height: 100svh; 
  display: flex; 
  place-items: center; 
  overflow: hidden;
  background: linear-gradient(rgba(74,144,226,0.7), rgba(74,144,226,0.7)), url('townhouse-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-overlay { 
  position: relative; 
  text-align: left; 
  padding: 0 16px; 
  z-index: 2; 
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}
.hero-content-box {
  background: rgba(0, 0, 0, 0.6);
  padding: 32px;
  border-radius: 12px;
  text-align: left;
  max-width: 600px;
  /* no margin needed */
}
.hero-overlay h1 { font-size: clamp(22.5px, 4.5vw, 45px); margin: 0 0 10px; letter-spacing: 0.2px; }
.hero-overlay p { margin: 0 0 24px; color: var(--muted); font-size: clamp(16px, 2.5vw, 20px); }
.cta {
  display: inline-block;
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: white; text-decoration: none; font-weight: 600; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(45,187,111,0.35);
}
.cta:hover { transform: translateY(-1px); }

/* Sections */
.content-section { padding: 96px 0; background: var(--bg); }
.content-section.alt { background: var(--panel); }
.content-section h2 { font-size: 28px; margin: 0 0 12px; }
.content-section p { color: var(--muted); margin: 0; max-width: 70ch; }
.bullets { margin: 0; padding-left: 18px; color: var(--muted); }
.bullets li { margin: 8px 0; }

/* Product Section */
.product-section { 
  padding: 96px 0; 
  background: var(--bg); 
}
.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.product-text h2 { 
  font-size: 36px; 
  margin: 0 0 16px; 
  color: var(--text);
  font-weight: 800;
}
.product-tagline {
  font-size: 24px;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 24px;
  font-style: italic;
}
.product-description,
.product-impact {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
  font-size: 18px;
}
.product-impact strong {
  color: var(--text);
}
.product-features {
  margin: 32px 0;
}
.product-features h3 {
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 600;
}
.product-features ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.product-features li {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.5;
}
.product-cta {
  display: inline-block;
  padding: 16px 32px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(45, 187, 111, 0.35);
  transition: all 0.3s ease;
  margin-top: 24px;
}
.product-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 187, 111, 0.45);
}
.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}
.product-image img:hover {
  transform: scale(1.05);
}

/* Form */
.signup { display: flex; gap: 10px; margin-top: 8px; }
.signup input {
  flex: 1; min-width: 220px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid #5a9ae2; background: #ffffff; color: #000000;
}
.signup button { padding: 12px 16px; border-radius: 10px; background: var(--brand); color: #0a0a0a; border: none; font-weight: 700; }
.signup button:hover { background: var(--brand-dark); color: white; }

/* Sustainability Cards */
.sustainability-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.sustainability-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.sustainability-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--brand);
  box-shadow: 0 20px 40px rgba(45, 187, 111, 0.2);
}

.card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.sustainability-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(45, 187, 111, 0.4);
}

.sustainability-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

.sustainability-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 16px;
}

/* Footer */
.site-footer { 
  border-top: 1px solid #5a9ae2; 
  padding: 20px 0; 
  color: var(--muted); 
  background: var(--panel);
}

/* Blog styles */
.blog-section { padding: 96px 0; background: var(--bg); }
.blog-section h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}
.blog-section h2 a:hover {
  color: var(--brand);
}
.blog-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.blog-grid { 
  display: flex;
  gap: 24px;
  flex: 1;
  overflow: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.blog-grid::-webkit-scrollbar {
  display: none;
}
.blog-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 300px;
  background: var(--panel); 
  border-radius: 16px; 
  padding: 32px; 
  transition: all 0.3s ease; 
  text-decoration: none; 
  color: inherit;
  border: 2px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.blog-card:hover { 
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(45, 187, 111, 0.2);
  background: rgba(58, 123, 213, 0.8);
}
.blog-card h3 { 
  margin: 0 0 16px; 
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}
.blog-card p { 
  margin: 0 0 20px; 
  color: var(--muted);
  line-height: 1.6;
}
.blog-meta { 
  font-size: 14px; 
  color: var(--brand);
  font-weight: 500;
}
.blog-nav {
  background: var(--panel);
  border: 2px solid var(--brand);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.blog-nav:hover {
  background: var(--brand);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(45, 187, 111, 0.3);
}
.blog-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.site-footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .nav { display: none; }
  .site-header .container {
    justify-content: center;
  }
  .brand {
    position: static;
    transform: none;
  }
  .signup { flex-direction: column; }
  .product-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-text h2 {
    font-size: 28px;
  }
  .product-tagline {
    font-size: 20px;
  }
  .product-description,
  .product-impact {
    font-size: 16px;
  }
  .blog-container {
    flex-direction: column;
    gap: 24px;
  }
  .blog-nav {
    width: 40px;
    height: 40px;
  }
  .blog-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  .blog-card {
    flex: 0 0 calc(100% - 0px);
    min-width: 100%;
  }
}


