/* ProClimate - CSS critic pentru primul ecran al homepage-ului.
   Încarcă acest fișier primul, înainte de home-deferred.css. */

:root {
  --pc-navy: #0f1f2e;
  --pc-blue: #0e5f87;
  --pc-green: #127866;
  --pc-text: #334155;
  --pc-muted: #475569;
  --pc-line: #dbe5ea;
  --pc-white: #ffffff;
  --pc-bg-alt: #f7fafb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--pc-text);
  background: var(--pc-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header,
header {
  background: var(--pc-white);
  border-bottom: 1px solid rgba(15, 31, 46, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.logo {
  color: var(--pc-navy);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.logo span { color: var(--pc-green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: var(--pc-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover { color: var(--pc-blue); }

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--pc-bg-alt);
}

.hero {
  padding-top: 56px;
  padding-bottom: 56px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
  gap: 48px;
}

.hero-eyebrow {
  margin-bottom: 14px;
  color: var(--pc-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--pc-navy);
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

h1 span { color: var(--pc-blue); }

.hero-summary {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--pc-muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-summary-compact-accent {
  border-left: 4px solid var(--pc-green);
  padding-left: 16px;
}

.hero-brand-promise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 22px;
}

.hero-brand-promise span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(18, 120, 102, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(18, 120, 102, 0.08);
  color: #0f5f52;
  font-size: 14px;
  font-weight: 700;
}

.hero-brand-promise span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--pc-green);
}

.hero-proof-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.hero-proof-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(20, 118, 96, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.68);
  font-weight: 600;
}

.hero-proof-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--pc-navy);
}

.hero-proof-icon {
  flex: 0 0 auto;
  color: var(--pc-green);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 14px;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  border-color: var(--pc-green);
  background: var(--pc-green);
  color: var(--pc-white);
}

.btn-primary:hover { background: #0d6556; }

.btn-outline {
  border-color: rgba(14, 95, 135, 0.36);
  background: var(--pc-white);
  color: var(--pc-blue);
}

.btn-outline:hover {
  border-color: var(--pc-blue);
  background: rgba(14, 95, 135, 0.06);
}

.btn-full { width: 100%; }

.hero-meta {
  margin-bottom: 0;
  color: var(--pc-muted);
  font-size: 14px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.badge {
  border-radius: 999px;
  padding: 7px 10px;
  background: #eaf4f1;
  color: #0f5f52;
  font-size: 13px;
  font-weight: 700;
}

.hero-form-card {
  position: sticky;
  top: 24px;
  border: 1px solid rgba(15, 95, 172, 0.16);
  border-radius: 18px;
  padding: 28px;
  background: var(--pc-white);
  box-shadow: 0 20px 50px rgba(18, 51, 75, 0.12);
}

.hero-form-card h2 {
  margin-bottom: 10px;
  color: var(--pc-navy);
  font-size: 27px;
  line-height: 1.18;
}

.form-help-text,
.form-disclaimer {
  color: var(--pc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-value-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--pc-text);
}

.form-value-list li {
  position: relative;
  margin: 7px 0;
  padding-left: 22px;
}

.form-value-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--pc-green);
  font-weight: 800;
}

form label {
  display: block;
  margin: 14px 0 6px;
  color: var(--pc-navy);
  font-size: 14px;
  font-weight: 700;
}

form input,
form select,
form textarea {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 11px 12px;
  background: var(--pc-white);
  color: var(--pc-navy);
  font: inherit;
}

form textarea {
  min-height: 110px;
  resize: vertical;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: 3px solid rgba(14, 95, 135, 0.16);
  border-color: var(--pc-blue);
}

.form-project-type-note {
  display: none;
  margin: 10px 0 16px;
  border-radius: 10px;
  padding: 11px 12px;
  background: rgba(14, 95, 135, 0.08);
  color: var(--pc-blue);
  font-size: 14px;
  line-height: 1.45;
}

.form-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 16px 0;
  color: var(--pc-muted);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.form-consent-row input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--pc-green);
}

.form-consent-row span {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.form-consent-row a {
  color: var(--pc-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.direct-call-box {
  margin-top: 18px;
  border-radius: 12px;
  padding: 14px;
  background: #edf7f4;
  color: var(--pc-navy);
  font-size: 14px;
  font-weight: 700;
}

.direct-call-link { margin-top: 10px; }

.kb-mobile-promo { display: none; }

@media (max-width: 900px) {
  .container { width: min(100% - 32px, 760px); }

  .nav { min-height: 66px; }

  .nav-links { display: none; }

  .grid-2 { grid-template-columns: 1fr; gap: 24px; }

  .hero {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hero-form-card {
    position: static;
    margin-top: 0;
  }

  .hero-brand-promise { display: grid; }

  .hero-brand-promise span { width: 100%; }

  .kb-mobile-promo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--pc-green);
    color: var(--pc-white);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
  }

  .kb-mobile-promo-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .kb-mobile-promo-text {
    flex: 1 1 auto;
    min-width: 0;
  }

  .kb-mobile-promo-arrow { flex: 0 0 auto; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 28px); }

  h1 { font-size: 34px; }

  .hero-summary { font-size: 16px; }

  .hero-actions { display: grid; }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline { width: 100%; }

  .hero-form-card { padding: 22px 18px; }

  .hero-form-card h2 { font-size: 24px; }

  .form-consent-row {
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .form-consent-row input {
    width: 15px;
    height: 15px;
    margin-top: 3px;
  }

  .kb-mobile-promo { padding: 10px 14px; }
}
