/* embeddedcarbonrecord.com — main.css */
/* 4-Gem v3 Compliant · Cloudflare Fonts · No Google Fonts */

:root {
  --green-dark:   #0E6655;
  --green-mid:    #1A8C74;
  --green-light:  #D5F5E3;
  --grey-dark:    #1C2833;
  --grey-mid:     #5D6D7E;
  --grey-light:   #F4F6F7;
  --white:        #FFFFFF;
  --border:       #D5D8DC;
  --warning:      #E74C3C;
  --font-main:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Fira Code', 'Courier New', monospace;
  --max-width:    1100px;
  --radius:       6px;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--grey-dark);
  background: var(--white);
  line-height: 1.65;
}

/* ── Typography ── */
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; color: var(--grey-dark); }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 600; margin-top: 2rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 600; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* ── Header / Nav ── */
header {
  background: var(--grey-dark);
  color: var(--white);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--green-mid); }
nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
nav ul li a {
  color: #CBD5E0;
  font-size: 0.875rem;
  transition: color 0.15s;
}
nav ul li a:hover { color: var(--white); text-decoration: none; }
.nav-cta {
  background: var(--green-dark);
  color: var(--white) !important;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-mid) !important; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--grey-light);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--grey-mid);
}
.breadcrumb ol { display: flex; gap: 0.4rem; list-style: none; flex-wrap: wrap; }
.breadcrumb li + li::before { content: '›'; margin-right: 0.4rem; }
.breadcrumb a { color: var(--green-dark); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--grey-dark) 0%, #2C3E50 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero .lead {
  font-size: 1.15rem;
  color: #CBD5E0;
  max-width: 680px;
  margin-bottom: 1.75rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── CTA Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--green-mid); text-decoration: none; color: var(--white); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; color: var(--white); }
.btn-dark {
  display: inline-block;
  background: var(--grey-dark);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn-dark:hover { background: #2C3E50; text-decoration: none; color: var(--white); }

/* ── ETS Widget ── */
.ets-widget {
  background: var(--green-dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.ets-widget .ets-price-main {
  font-size: 1.5rem;
  font-weight: 700;
}
.ets-widget .ets-label { opacity: 0.8; font-size: 0.8rem; }
.ets-costs { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ets-cost-item { text-align: center; }
.ets-cost-item .cost-val { font-size: 1.1rem; font-weight: 700; }
.ets-cost-item .cost-label { font-size: 0.75rem; opacity: 0.8; }

/* ── Sections ── */
.section { padding: 3rem 0; }
.section-alt { background: var(--grey-light); }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

/* ── Feature Cards ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 4px solid var(--green-dark);
}
.feature-card h3 { margin-top: 0; color: var(--green-dark); }

/* ── Country Grid ── */
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.country-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  color: var(--grey-dark);
  display: block;
}
.country-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-color: var(--green-dark); text-decoration: none; }
.country-card .flag { font-size: 2rem; display: block; margin-bottom: 0.4rem; }
.country-card .country-name { font-weight: 600; font-size: 0.9rem; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.data-table th {
  background: var(--grey-dark);
  color: var(--white);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 600;
}
.data-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
.data-table tr:nth-child(even) td { background: var(--grey-light); }
.data-table tr:hover td { background: var(--green-light); }
.table-wrap { overflow-x: auto; }

/* ── FAQ ── */
.faq-list { margin-top: 1rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--green-dark); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 0.75rem; color: var(--grey-mid); }

/* ── CTA Block ── */
.cta-block {
  background: linear-gradient(135deg, var(--green-dark) 0%, #0B5345 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}
.cta-block h2 { color: var(--white); margin-top: 0; }
.cta-block p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 1.5rem; }
.cta-block .cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Upstream Links ── */
.upstream-links {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.upstream-links a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.upstream-links a:hover { color: var(--white); }

/* ── Calculator ── */
.calculator-box {
  background: var(--white);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.calc-field label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--grey-dark);
}
.calc-field select,
.calc-field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--grey-dark);
  background: var(--white);
}
.calc-field select:focus,
.calc-field input:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(14,102,85,0.15);
}
.calc-btn {
  background: var(--green-dark);
  color: var(--white);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.calc-btn:hover { background: var(--green-mid); }
.calc-results {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--green-light);
}
.calc-results.visible { display: block; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.result-card {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.result-card.highlight { background: var(--green-light); border: 2px solid var(--green-dark); }
.result-card .result-val { font-size: 1.4rem; font-weight: 700; color: var(--green-dark); }
.result-card .result-label { font-size: 0.8rem; color: var(--grey-mid); margin-top: 0.25rem; }
.result-card.negative .result-val { color: var(--warning); }
.truth-anchor {
  font-size: 0.8rem;
  color: var(--grey-mid);
  border-left: 3px solid var(--border);
  padding-left: 0.75rem;
  margin-top: 1rem;
}

/* ── Forms ── */
.form-section { max-width: 680px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--grey-dark);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(14,102,85,0.15);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--grey-light);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
}
.checkbox-item input[type="checkbox"] { accent-color: var(--green-dark); }
.form-submit {
  background: var(--green-dark);
  color: var(--white);
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.form-submit:hover { background: var(--green-mid); }
.form-note { font-size: 0.8rem; color: var(--grey-mid); margin-top: 0.5rem; }

/* ── Pricing Table ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.pricing-card.featured {
  border: 2px solid var(--green-dark);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 99px;
  white-space: nowrap;
}
.pricing-card .plan-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.pricing-card .plan-price { font-size: 2rem; font-weight: 700; color: var(--green-dark); }
.pricing-card .plan-price span { font-size: 1rem; font-weight: 400; color: var(--grey-mid); }
.pricing-card .plan-desc { font-size: 0.875rem; color: var(--grey-mid); margin: 0.75rem 0 1.25rem; }
.pricing-card ul { list-style: none; text-align: left; font-size: 0.875rem; margin-bottom: 1.5rem; }
.pricing-card ul li { padding: 0.3rem 0; }
.pricing-card ul li::before { content: '✓ '; color: var(--green-dark); font-weight: 700; }

/* ── Footer ── */
footer {
  background: var(--grey-dark);
  color: #A0AEC0;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 { color: var(--white); font-size: 0.875rem; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: #A0AEC0; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.partner-sites { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.partner-sites a { color: #A0AEC0; font-size: 0.8rem; }
.partner-sites a:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-inner { flex-direction: column; align-items: flex-start; }
  nav ul { gap: 0.75rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .footer-bottom { flex-direction: column; }
}
