/* ============================================================
   incarcatoarefrontale.ro — CSS Design System
   Colors from logo: Yellow #F5A623, Blue #1E4B8F, Dark #1a1a1a
   Font: Barlow Condensed (headings) + Inter (body)
   ============================================================ */

:root {
  --yellow: #F5A623;
  --yellow-dark: #D4891A;
  --yellow-light: #FFF3DC;
  --blue: #1E4B8F;
  --blue-dark: #153672;
  --blue-light: #E8EFF9;
  --dark: #1a1a1a;
  --dark2: #2d2d2d;
  --gray: #6b7280;
  --gray-light: #f3f4f6;
  --gray-border: #e5e7eb;
  --white: #ffffff;
  --green: #16a34a;
  --red: #dc2626;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.15);
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-secondary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  height: var(--header-h);
  border-bottom: 3px solid var(--yellow);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-main {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.logo-sub {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Nav */
.main-nav { flex: 1; }
.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--yellow); background: rgba(255,255,255,.05); }
.nav-arrow { font-size: 10px; opacity: .6; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  z-index: 200;
  padding: 6px;
  list-style: none;
}
.dropdown li a {
  color: var(--dark);
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
}
.dropdown li a:hover { background: var(--gray-light); color: var(--blue); }
.has-dropdown:hover .dropdown { display: block; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.tel-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.tel-link:hover { color: var(--white); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all .2s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111;
  padding: 80px 24px 24px;
  gap: 2px;
  z-index: 9998;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav a {
  color: rgba(255,255,255,.85);
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
}
.mobile-nav a:hover,
.mobile-nav a:active { background: rgba(255,255,255,.05); color: var(--yellow); }
.mobile-nav.open { display: flex; }

/* Close button inside mobile nav */
.mobile-nav-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ---- WhatsApp ---- */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all .2s;
}
.whatsapp-btn:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
}

/* ---- Hero ---- */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: .15;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--yellow);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: .01em;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--yellow); }
.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
  max-width: 560px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 40px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
}
.trust-icon {
  width: 32px;
  height: 32px;
  background: rgba(245,166,35,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  font-size: 16px;
  flex-shrink: 0;
}

/* ---- Section ---- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-gray { background: var(--gray-light); }
.section-dark { background: var(--dark); color: var(--white); }
.section-blue { background: var(--blue); color: var(--white); }

.section-header {
  margin-bottom: 48px;
}
.section-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--yellow);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-dark .section-title,
.section-blue .section-title { color: var(--white); }
.section-desc {
  font-size: 17px;
  color: var(--gray);
  max-width: 600px;
}
.section-dark .section-desc,
.section-blue .section-desc { color: rgba(255,255,255,.75); }

/* ---- Cards grid ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .2s;
}
.card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--yellow-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--dark);
}
.card p { font-size: 14px; color: var(--gray); line-height: 1.6; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.card-link:hover { color: var(--yellow-dark); }

/* ---- Stats bar ---- */
.stats-bar {
  background: var(--yellow);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark2);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---- Form styles ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  transition: border-color .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,75,143,.1);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--gray); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--dark);
}

/* ---- Alert ---- */
.alert-box {
  background: var(--green);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 24px;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-border);
  font-size: 13px;
  color: var(--gray);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; opacity: .4; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: var(--dark);
  padding: 48px 0;
  border-bottom: 3px solid var(--yellow);
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}
.page-hero h1 span { color: var(--yellow); }
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,.7);
  margin-top: 12px;
  max-width: 600px;
}

/* ---- Pros list ---- */
.pros-list { list-style: none; }
.pros-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-border);
}
.pros-list li:last-child { border-bottom: none; }
.pros-list li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Counties grid ---- */
.judete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.judet-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  transition: all .15s;
}
.judet-link:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}

/* ---- CTA section ---- */
.cta-section {
  background: var(--blue);
  padding: 72px 0;
  text-align: center;
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { margin-bottom: 16px; opacity: .9; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact a { font-size: 14px; color: var(--yellow); }
.footer-contact a:hover { color: var(--white); }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,.4); }
.footer-legal a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.3); }

/* ---- Legal pages ---- */
.legal-content {
  max-width: 800px;
  padding: 60px 0;
}
.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 36px 0 12px;
  color: var(--dark);
}
.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.legal-content p { margin-bottom: 16px; font-size: 15px; line-height: 1.7; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content ul li { margin-bottom: 6px; font-size: 15px; }

/* ---- Tool pages ---- */
.tool-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.tool-result {
  background: var(--blue-light);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  text-align: center;
}
.tool-result-num {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
}
.tool-result-label { font-size: 14px; color: var(--gray); margin-top: 4px; }

/* ---- Table ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  background: var(--dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-border);
}
.data-table tr:hover td { background: var(--gray-light); }
.price-range {
  font-weight: 700;
  color: var(--green);
}

/* ---- Utilities ---- */
.text-yellow { color: var(--yellow); }
.text-blue { color: var(--blue); }
.text-gray { color: var(--gray); }
.text-center { text-align: center; }
.text-sm { font-size: 14px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.divider { border: none; border-top: 1px solid var(--gray-border); margin: 32px 0; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .main-nav, .header-cta .btn { display: none; }
  .mobile-toggle { display: flex; margin-left: auto; }
  .tel-link { display: none; }
  .hero { padding: 40px 0; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr; }
  .whatsapp-btn span { display: none; }
  .whatsapp-btn { padding: 12px; border-radius: 50%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .page-hero h1 { font-size: clamp(26px, 7vw, 44px); }
  .section-title { font-size: clamp(22px, 5vw, 36px); }
  .cards-grid-3 { grid-template-columns: 1fr 1fr; }
  .cards-grid-4 { grid-template-columns: 1fr 1fr; }
  /* servicii horizontal cards go vertical */
  [style*="grid-template-columns:280px"] { display: flex !important; flex-direction: column !important; }
  .btn-lg { padding: 13px 20px; font-size: 15px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid, .cards-grid-3, .cards-grid-4 { grid-template-columns: 1fr; }
  .judete-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { text-align: center; justify-content: center; }
  .form-card { padding: 20px; }
  .tool-card { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  .breadcrumb { font-size: 12px; }
}
