/* ============================================================
   CONTAGEX SRL — Stiluri principale
   Paletă: bleumarin profesional + accent auriu (seriozitate, încredere)
============================================================ */

:root {
  --navy-900: #0a2240;
  --navy-800: #0d2a4a;
  --navy-700: #143a63;
  --navy-600: #1d4d80;
  --gold: #c79a3a;
  --gold-bright: #e0b850;
  --ink: #14233a;
  --slate: #4a5a70;
  --muted: #6b7a90;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-alt: #eef3f9;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(10, 34, 64, .08), 0 1px 2px rgba(10, 34, 64, .06);
  --shadow: 0 10px 30px rgba(10, 34, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 34, 64, .16);
  --container: 1140px;
  --ff-head: 'Sora', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

h1, h2, h3 { font-family: var(--ff-head); line-height: 1.2; color: var(--navy-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--slate); }
a { color: var(--navy-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img, svg { max-width: 100%; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-900); box-shadow: 0 8px 22px rgba(199,154,58,.35); }
.btn-primary:hover { background: var(--gold-bright); color: var(--navy-900); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--ff-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; color: var(--gold);
  margin: 0 0 .6rem;
}
.eyebrow-light { color: var(--gold-bright); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  display: block; width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-family: var(--ff-head); font-size: 1.22rem; color: var(--navy-900); letter-spacing: .01em; }
.brand-text small { color: var(--muted); font-size: .74rem; letter-spacing: .03em; }

.nav { margin-left: auto; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav-menu li { display: flex; }
.nav-menu a {
  display: inline-flex; align-items: center; white-space: nowrap; line-height: 1;
  font-family: var(--ff-head); font-weight: 500; font-size: .95rem; color: var(--ink);
  padding: 10px 13px; border-radius: 8px;
}
.nav-menu a:hover { background: var(--bg-alt); color: var(--navy-900); }
.nav-cta { background: var(--navy-900); color: #fff !important; }
.nav-cta:hover { background: var(--navy-700) !important; }

.header-phone {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex: 0 0 auto;
  font-family: var(--ff-head); font-weight: 600; color: var(--navy-900);
  padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px;
}
.header-phone:hover { border-color: var(--gold); color: var(--navy-900); }
.header-phone svg { color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy-900); border-radius: 2px; transition: .25s; }

/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(199,154,58,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 70%);
  color: #eaf1fa; padding: clamp(56px, 8vw, 96px) 0;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--gold-bright); }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--gold-bright); }
.hero .lead { color: #c7d6ea; font-size: 1.12rem; max-width: 56ch; }
.hero .lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 30px; }

.trust-row { list-style: none; display: flex; gap: 30px; margin: 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.trust-row li { display: flex; flex-direction: column; }
.trust-row strong { font-family: var(--ff-head); font-size: 1.7rem; color: var(--gold-bright); font-weight: 800; }
.trust-row span { font-size: .85rem; color: #aebfd6; }

.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-lg);
}
.hero-card h2 { font-size: 1.3rem; }
.hero-card > p { font-size: .95rem; }
.hero-card-list { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 14px; }
.hero-card-list li { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.hero-card-list svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--gold); }
.hero-card-list a { color: var(--navy-800); font-weight: 600; word-break: break-word; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(56px, 7vw, 90px) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-sub { font-size: 1.08rem; color: var(--muted); }

/* ---------------- Cards (servicii) ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f2; }
.card-featured { border-color: var(--gold); box-shadow: 0 14px 40px rgba(199,154,58,.18); }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600)); color: var(--gold-bright); margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { font-size: .96rem; margin: 0; }
.badge {
  position: absolute; top: 18px; right: 18px; font-family: var(--ff-head); font-weight: 700;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: var(--navy-900); padding: 4px 10px; border-radius: 999px;
}

/* ---------------- About ---------------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.1fr; gap: 56px; align-items: center; }
.about-media {
  position: relative; min-height: 320px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-900), var(--navy-600));
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
}
.about-media::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(300px 200px at 30% 20%, rgba(199,154,58,.25), transparent 70%);
}
.about-badge { position: relative; text-align: center; color: #fff; padding: 24px; }
.about-badge strong { display: block; font-family: var(--ff-head); font-size: 4rem; font-weight: 800; color: var(--gold-bright); line-height: 1; }
.about-badge span { display: block; max-width: 14ch; margin: 10px auto 0; color: #cdddef; }
.about-stat {
  position: absolute; bottom: 22px; right: 22px; background: #fff; color: var(--navy-900);
  border-radius: var(--radius-sm); padding: 12px 18px; box-shadow: var(--shadow); text-align: center;
}
.about-stat span { font-size: .75rem; color: var(--muted); display: block; }
.about-stat strong { font-family: var(--ff-head); font-size: 1.5rem; }

.check-list { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold); display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------------- Zone ---------------- */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.zone {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  border-top: 3px solid var(--gold); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.zone:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.zone h3 { color: var(--navy-800); }
.zone p { font-size: .92rem; margin: 0; }

/* ---------------- Legislatie (dark) ---------------- */
.section-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #e7eefa; }
.section-dark h2 { color: #fff; max-width: 20ch; }
.section-dark p { color: #c2d3e8; }
.legis-grid { max-width: 900px; }
.legis-content > p { font-size: 1.1rem; max-width: 62ch; }
.legis-content strong { color: #fff; }
.legis-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.legis-points div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 20px; }
.legis-points strong { display: block; font-family: var(--ff-head); color: var(--gold-bright); margin-bottom: 6px; }
.legis-points span { font-size: .92rem; color: #b9cae0; }

/* ---------------- FAQ ---------------- */
.faq { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 54px 20px 22px; position: relative;
  font-family: var(--ff-head); font-weight: 600; color: var(--navy-900); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold); transition: transform .25s; font-weight: 400;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body { padding: 0 22px 20px; }
.faq-body p { margin: 0; font-size: .98rem; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px; background: var(--navy-900); color: var(--gold); display: grid; place-items: center; }
.ci-icon svg { width: 20px; height: 20px; }
.contact-list div span:first-child { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a, .contact-list address { font-style: normal; font-weight: 600; color: var(--navy-800); }
.company-meta { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--ff-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,58,.18);
}
.field textarea { resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--slate); margin: 4px 0 18px; cursor: pointer; }
.consent input { margin-top: 4px; flex: 0 0 auto; }
.form-status { margin: 14px 0 0; font-size: .92rem; font-weight: 600; text-align: center; }
.form-status.ok { color: #1a7a3a; }
.form-status.err { color: #b5341f; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-900); color: #c3d3e8; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 1.2fr; gap: 36px; }
.brand-footer .brand-text strong, .brand-footer small { color: #fff; }
.footer-desc { font-size: .92rem; margin-top: 16px; max-width: 42ch; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #c3d3e8; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: #93a8c4;
}
.footer-bottom p { margin: 0; color: #93a8c4; }

/* ---------------- Floating call button ---------------- */
.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px;
  background: var(--gold); color: var(--navy-900); border-radius: 50%; display: none;
  place-items: center; box-shadow: var(--shadow-lg); animation: pulse 2.4s infinite;
}
.fab-call svg { width: 26px; height: 26px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(199,154,58,.5); } 70% { box-shadow: 0 0 0 16px rgba(199,154,58,0); } 100% { box-shadow: 0 0 0 0 rgba(199,154,58,0); } }

/* ---------------- Responsive ---------------- */
/* Meniu hamburger: apare devreme (sub 1024px) ca să nu se înghesuie linkurile */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 22px 18px; gap: 4px;
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { text-align: center; margin-top: 6px; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .legis-points { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header-phone span { display: none; }
  .header-phone { padding: 9px; }
  .fab-call { display: grid; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .zones { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-row { gap: 20px; }
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* ============================================================
   SUBPAGINI: blog, articole, pagini per oraș
============================================================ */

/* Hero secundar + breadcrumb */
.page-hero {
  background:
    radial-gradient(1000px 400px at 88% -20%, rgba(199,154,58,.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #eaf1fa; padding: clamp(40px, 6vw, 70px) 0;
}
.page-hero .eyebrow { color: var(--gold-bright); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: #c7d6ea; font-size: 1.12rem; max-width: 62ch; margin-bottom: 0; }
.page-hero .hero-actions { margin-bottom: 0; }

.breadcrumb { font-size: .85rem; margin: 0 0 16px; color: #9fb3cf; }
.breadcrumb a { color: #c7d6ea; }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb .sep { margin: 0 8px; opacity: .55; }

/* Bandă CTA (pagini oraș + articole) */
.cta-band {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; font-size: 1.5rem; }
.cta-band p { margin: 0; }
.cta-band .btn { white-space: nowrap; }

/* Listă blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-thumb { height: 7px; background: linear-gradient(90deg, var(--gold), var(--navy-600)); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-family: var(--ff-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--gold); }
.post-card h2, .post-card h3 { margin: 8px 0 10px; font-size: 1.18rem; }
.post-card h2 a, .post-card h3 a { color: var(--navy-900); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--gold); }
.post-card p { font-size: .94rem; margin: 0 0 16px; }
.post-meta { font-size: .82rem; color: var(--muted); margin-top: auto; }
.post-link { font-family: var(--ff-head); font-weight: 600; font-size: .92rem; color: var(--navy-600); margin-top: 12px; display: inline-block; }

/* Articol */
.article { max-width: 760px; margin-inline: auto; }
.article-body { font-size: 1.07rem; }
.article-body > p:first-of-type { font-size: 1.16rem; color: var(--ink); }
.article-body h2 { margin: 1.7em 0 .5em; font-size: 1.5rem; }
.article-body h3 { margin: 1.3em 0 .4em; font-size: 1.18rem; }
.article-body ul, .article-body ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .5em; color: var(--slate); }
.article-body blockquote {
  margin: 1.5em 0; padding: 16px 22px; background: var(--bg-soft);
  border-left: 4px solid var(--gold); border-radius: 8px; color: var(--ink); font-style: italic;
}
.article-disclaimer {
  margin-top: 2.2em; padding: 18px 22px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; color: var(--slate);
}
.related { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 34px; }
.related h2 { font-size: 1.3rem; }

@media (max-width: 980px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
