/* =========================================================
   Telefonie VoIP / IP — Design System
   Site static de prezentare pentru piața din România
   ========================================================= */

:root {
  /* Paletă — brand Airbytes (roșu #FF0000 + charcoal #323232) */
  --c-bg: #ffffff;
  --c-bg-alt: #f7f4f4;
  --c-bg-dark: #2b2b2b;
  --c-bg-dark-2: #3a3a3a;
  --c-primary: #ff0000;
  --c-primary-dark: #d50000;
  --c-primary-light: #ffe6e6;
  --c-accent: #0aa0ad;
  --c-accent-dark: #07808c;
  --c-text: #323232;
  --c-text-soft: #5e5e5e;
  --c-text-invert: #f3eeee;
  --c-border: #ece5e5;
  --c-warning: #ff9f1c;

  /* Gradient brand Airbytes */
  --grad-red: linear-gradient(135deg, #ff2020 0%, #ff0000 45%, #d50000 100%);

  /* Tipografie */
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spațiere & formă */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(12, 26, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 26, 43, 0.16);
  --container: 1180px;
  --transition: 0.22s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary-dark); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--c-text); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--c-text-soft); }

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

.section { padding: 76px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #c8c2c2; }

.center { text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; font-weight: 700; color: var(--c-primary);
  background: var(--c-primary-light); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section--dark .eyebrow { background: rgba(255,32,32,.18); color: #ff8080; }
.lead { font-size: 1.18rem; max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 2px solid transparent; transition: var(--transition);
  text-align: center; white-space: nowrap;
}
.btn--primary { background: var(--grad-red); color: #fff; }
.btn--primary:hover { background: linear-gradient(135deg, #ff0000 0%, #d50000 100%); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary-dark); }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--light:hover { background: #ffecec; color: var(--c-primary-dark); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--c-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: var(--c-text); letter-spacing: -0.02em; }
.brand:hover { color: var(--c-text); }
.brand .logo-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand .brand-logo { height: 32px; width: auto; flex: 0 0 auto; display: block; }
.brand b { color: var(--c-primary); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--c-text); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--c-primary); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; color: var(--c-text); white-space: nowrap; }
.nav-phone span { color: var(--c-text-soft); font-weight: 600; font-size: .8rem; display: block; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--c-text); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1100px 520px at 78% -8%, rgba(255,0,0,.14), transparent 60%),
              radial-gradient(800px 420px at 10% 0%, rgba(213,0,0,.07), transparent 55%),
              var(--c-bg);
  padding: 84px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.hero h1 span { color: var(--c-primary); }
.hero .lead { margin-bottom: 28px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.hero-points li { display: flex; align-items: flex-start; gap: 11px; font-weight: 600; color: var(--c-text); }
.hero-points li::before { content: "✓"; color: var(--c-accent); font-weight: 900; background: rgba(10,160,173,.14); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-size: .85rem; }

.hero-card {
  background: linear-gradient(165deg, var(--c-bg-dark), var(--c-bg-dark-2));
  border-radius: 22px; padding: 34px; color: #fff; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.hero-card::after { content: ""; position: absolute; inset: -40% -40% auto auto; width: 280px; height: 280px; background: radial-gradient(circle, rgba(255,32,32,.55), transparent 70%); }
.hero-card h3 { color: #fff; position: relative; }
.hero-card .price { font-size: 2.6rem; font-weight: 800; color: #fff; position: relative; }
.hero-card .price small { font-size: .95rem; font-weight: 600; color: #c2b8b8; }
.hero-card ul { list-style: none; padding: 0; margin: 18px 0 24px; position: relative; }
.hero-card ul li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: #ddd6d6; display: flex; gap: 10px; }
.hero-card ul li::before { content: "→"; color: var(--c-accent); }

/* ---------- Bandă statistici / parteneri ---------- */
.trust-bar { background: var(--c-bg-dark); color: #fff; padding: 22px 0; }
.trust-bar .container { display: flex; gap: 38px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.trust-item { text-align: center; flex: 1; min-width: 150px; }
.trust-item b { display: block; font-size: 1.9rem; color: #fff; font-weight: 800; }
.trust-item span { color: #c2b8b8; font-size: .9rem; }

/* ---------- Grid carduri ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 30px; transition: var(--transition); height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico { width: 52px; height: 52px; border-radius: 13px; background: var(--c-primary-light); color: var(--c-primary); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .98rem; }
.section--dark .card { background: var(--c-bg-dark-2); border-color: rgba(255,255,255,.08); }
.section--dark .card .ico { background: rgba(255,32,32,.18); color: #ff8080; }

/* ---------- Listă cu bife (keyword-rich) ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--c-text); }
.check-list li::before { content: "✓"; color: var(--c-accent); font-weight: 900; flex: 0 0 auto; margin-top: 2px; }

/* ---------- Două coloane (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split--reverse .split-media { order: -1; }
.media-box {
  background: linear-gradient(165deg, var(--c-primary), var(--c-primary-dark));
  border-radius: var(--radius); padding: 40px; color: #fff; box-shadow: var(--shadow);
}
.media-box h3 { color: #fff; }
.media-box .check-list li { color: #fff; }
.media-box .check-list li::before { color: #fff; }

/* ---------- Prețuri ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; transition: var(--transition); }
.plan:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.plan--featured { border: 2px solid var(--c-primary); box-shadow: var(--shadow); position: relative; }
.plan--featured::before { content: "Cel mai ales"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.plan h3 { margin-bottom: 4px; }
.plan .plan-desc { font-size: .92rem; color: var(--c-text-soft); margin-bottom: 18px; }
.plan .plan-price { font-size: 2.7rem; font-weight: 800; color: var(--c-text); }
.plan .plan-price small { font-size: .95rem; font-weight: 600; color: var(--c-text-soft); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; flex: 1; }
.plan ul li { display: flex; gap: 10px; font-size: .96rem; color: var(--c-text); }
.plan ul li::before { content: "✓"; color: var(--c-accent); font-weight: 900; }

/* ---------- Pași ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 1.1rem; }
.step p { font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--c-border); border-radius: var(--radius-sm); margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; font-size: 1.06rem; font-weight: 700; color: var(--c-text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--c-primary); flex: 0 0 auto; transition: var(--transition); }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { padding: 0 24px 20px; max-height: 600px; }
.faq-a p { margin: 0; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); color: #fff; border-radius: 22px; padding: 56px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe0e0; max-width: 620px; margin: 0 auto 26px; }
.cta-band .btn--accent { background: #fff; color: var(--c-primary); }
.cta-band .btn--accent:hover { background: #ffecec; color: var(--c-primary-dark); }

/* ---------- Formular ---------- */
.form-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--c-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--c-text); background: #fff; transition: var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-light); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Tabel comparativ ---------- */
.table-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--c-border); }
table.compare thead th { background: var(--c-bg-dark); color: #fff; font-size: .95rem; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td:first-child { font-weight: 600; color: var(--c-text); }
.yes { color: var(--c-accent-dark); font-weight: 700; }
.no { color: #c0392b; font-weight: 700; }

/* ---------- Breadcrumb / page header ---------- */
.page-hero { background: linear-gradient(165deg, var(--c-bg-dark), var(--c-bg-dark-2)); color: #fff; padding: 66px 0 56px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c8c2c2; max-width: 680px; }
.breadcrumb { font-size: .88rem; color: #b0a8a8; margin-bottom: 16px; }
.breadcrumb a { color: #d8d2d2; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-bg-dark); color: #c4bdbd; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c4bdbd; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 14px; }
.footer-brand .logo-mark { width: 34px; height: 34px; }
.footer-domains { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-domains a { background: rgba(255,255,255,.06); padding: 5px 12px; border-radius: 999px; font-size: .82rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .86rem; }
.footer-legal a { color: #fff; text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* ---------- Pagini legale ---------- */
.legal { font-size: 1rem; line-height: 1.7; color: var(--c-text); }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .8rem; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1.2rem 1.2rem; padding: 0; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--c-primary); }

/* ---------- Utilitare ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span { background: #fff; border: 1px solid var(--c-border); padding: 8px 15px; border-radius: 999px; font-size: .9rem; color: var(--c-text-soft); font-weight: 600; }
.section--dark .tag-cloud span { background: var(--c-bg-dark-2); border-color: rgba(255,255,255,.1); color: #c8d6e6; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split--reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 18px 22px; gap: 18px; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow);
  }
  .grid-2, .grid-3, .grid-4, .steps, .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar .container { gap: 18px; }
}
