:root {
  --text: #1f2937;
  --muted: #4b5563;
  --muted2: #6b7280;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface2: #f1f5f9;
  --border: #e5e7eb;
  --brand: #007ac2;
  --brand2: #005a8c;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(2, 8, 23, .08);
  --max: 1160px;
}

/* Base */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

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

a:hover {
  color: var(--brand2)
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px
}

.section {
  padding: 72px 0
}

.section--tight {
  padding: 48px 0
}

hr.sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0
}

.kicker {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 0 0 12px 0;
}

h1 {
  font-size: 44px;
  line-height: 1.08;
  margin: 0 0 14px 0;
  letter-spacing: -.02em
}

h2 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px 0;
  letter-spacing: -.01em
}

h3 {
  font-size: 20px;
  margin: 0 0 8px 0
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 100%;
}

.note {
  font-size: 13px;
  color: var(--muted2)
}

.grid {
  display: grid;
  gap: 24px
}

.grid-2 {
  grid-template-columns: 1.15fr .85fr
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

@media (max-width: 399px) {
  h1 {
    font-size: 36px
  }

  h2 {
    font-size: 28px
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr
  }
}

@media (min-width: 400px) and (max-width: 549px) {
  h1 {
    font-size: 36px
  }

  h2 {
    font-size: 28px
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr
  }
}

/* Cards / pills */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card--flat {
  box-shadow: none;
  background: var(--surface);
  border-color: var(--surface2)
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 122, 194, .08);
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
}

/* Buttons (IMPORTANT: folosește astea peste tot) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 16px rgba(2, 8, 23, .08)
}

.btn:active {
  transform: translateY(1px)
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: transparent
}

.btn.primary:hover {
  background: var(--brand2)
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, .10)
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand img,
.brand svg {
  height: 28px;
  width: auto;
  max-width: 160px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px
}

.nav a:hover {
  color: var(--text)
}

/* ================= HERO (FULL BACKGROUND) =================
   IMPORTANT: selectorul e intenționat mai “generos” ca să prindă
   orice ai în HTML: .hero sau .hero-section sau .esri-hero
*/
.hero,
.hero-section,
.esri-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;

  background-image: url("../assets/img/background_pasare.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after,
.hero-section::after,
.esri-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, .70));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  padding: 72px 20px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 18px 0;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.55;
  opacity: .92;
  margin: 0 auto 26px auto;
  max-width: 70ch;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-tags span {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

@media (max-width: 399px) {
  .hero h1 {
    font-size: 40px
  }

  .hero-subtitle {
    font-size: 17px
  }
}

@media (min-width: 400px) and (max-width: 549px) {
  .hero h1 {
    font-size: 40px
  }

  .hero-subtitle {
    font-size: 17px
  }
}

/* Features list */
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px
}

.feature-list li {
  display: flex;
  gap: 12px
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 7px;
  background: var(--brand);
  flex: 0 0 auto
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0
}

.tab-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.tab-btn[aria-selected="true"] {
  border-color: rgba(0, 122, 194, .35);
  background: rgba(0, 122, 194, .08);
  color: var(--brand2);
}

.tab-panel {
  display: none
}

.tab-panel.is-active {
  display: block
}

/* Calculator */
.calc-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr .9fr
}

@media (max-width: 399px) {
  .calc-wrap {
    grid-template-columns: 1fr
  }
}

@media (min-width: 400px) and (max-width: 549px) {
  .calc-wrap {
    grid-template-columns: 1fr
  }
}

.calc-field {
  margin-bottom: 18px
}

.calc-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px
}

.calc-range {
  width: 100%
}

.metric {
  padding: 14px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border)
}

.metric .num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px
}

/* Team */
.team {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr)
}

@media (max-width: 399px) {
  .team {
    grid-template-columns: 1fr
  }
}

@media (min-width: 400px) and (max-width: 549px) {
  .team {
    grid-template-columns: 1fr
  }
}

.person {
  display: flex;
  gap: 14px;
  align-items: center
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border)
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  padding: 0;
  overflow: hidden
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 800;
  color: var(--text)
}

.faq-item summary::-webkit-details-marker {
  display: none
}

.faq-body {
  padding: 0 18px 16px 18px;
  color: var(--muted)
}

.faq-body p,
.faq-body ul {
  margin: 10px 0 0 0
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.4fr .6fr
}

@media (max-width: 399px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

@media (min-width: 400px) and (max-width: 549px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

.small-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.small-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px
}

.small-links a:hover {
  color: var(--text)
}

.hero,
.hero-section,
.esri-hero {
  background-image: url("../assets/img/background_pasare.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
