/* ===== AVR-EFECTRONIC Landing Page ===== */
:root {
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-600); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}
.btn-primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-600);
}
.btn-outline:hover {
  background: var(--green-50);
  color: var(--green-800);
}
.btn-text {
  background: transparent;
  color: var(--gray-600);
  border: none;
  padding: 0.5rem 0.75rem;
}
.btn-text:hover { color: var(--green-700); }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.btn-nav {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.25;
  min-height: 44px; /* aceeași înălțime cu logo-ul din header */
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.logo img {
  height: 88px; /* dublat față de dimensiunea anterioară */
  width: auto;
  object-fit: contain;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-list a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-list a:hover { color: var(--green-700); }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 4rem; /* spațiu sub header-ul mai înalt + logo mare */
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 50%, var(--gray-50) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(34, 197, 94, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(22, 163, 74, 0.08), transparent);
  pointer-events: none;
}
.hero-content {
  position: relative;
  display: grid;
  gap: 3rem;
}
.hero-logo {
  text-align: center;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
}
.hero-logo img {
  height: clamp(240px, 44vw, 400px); /* dublat față de dimensiunea anterioară */
  width: auto;
  max-width: min(95vw, 900px);
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(22, 163, 74, 0.2));
}
.hero-text {
  text-align: center;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}
.hero-text h1 span { color: var(--green-700); }
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
  justify-content: center;
}
.badge-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  min-width: 160px;
}
.badge-item strong {
  display: block;
  color: var(--green-700);
  font-size: 0.95rem;
}
.badge-item span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Sections */
.section {
  padding: 5rem 0;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-600);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}
.section-lead {
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* Despre */
.despre { background: var(--white); }
.despre-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.despre-text h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
}
.despre-text p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}
.check-list {
  margin-top: 1.5rem;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--gray-700);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--green-100);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2316a34a'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}
.despre-image {
  position: relative;
}
.despre-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  height: 380px;
}
.despre-card {
  position: absolute;
  bottom: -1.5rem;
  left: 1rem;
  right: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}
.despre-card h4 {
  color: var(--green-800);
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}
.despre-card .title-specialty {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 0.45rem;
  font-style: italic;
}
.despre-card p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 0.35rem; }
.despre-card .small { font-size: 0.8rem; color: var(--gray-500); }

/* Servicii cards */
.servicii { background: var(--gray-50); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 {
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
}
.card p {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* Avantaje */
.avantaje { background: var(--white); }
.avantaje-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.avantaj {
  padding: 1.5rem;
  border-left: 3px solid var(--green-500);
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.avantaj-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--green-600);
  margin-bottom: 0.5rem;
}
.avantaj h3 {
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.avantaj p {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* Proiecte */
.proiecte { background: var(--gray-50); }
.proiecte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.proiecte-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1000px) {
  .proiecte-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
.proiect-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.proiect-card-highlight {
  border-color: var(--green-300);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.12);
}
.proiect-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.proiect-body {
  padding: 1.5rem;
}
.proiect-body h3 {
  font-size: 1.2rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}
.proiect-body p {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}
.proiect-body ul {
  font-size: 0.9rem;
  color: var(--gray-700);
}
.proiect-body li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}
.proiect-body li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: bold;
}
.proiecte-note {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.proiecte-note p {
  color: var(--gray-700);
  max-width: 800px;
  margin: 0 auto;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: var(--white);
  padding: 4rem 0;
}
.cta-box {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}
.cta-box p {
  opacity: 0.9;
  margin-bottom: 1.75rem;
}
.cta-box .btn-primary {
  background: var(--white);
  color: var(--green-800);
  border-color: var(--white);
}
.cta-box .btn-primary:hover {
  background: var(--green-50);
  color: var(--green-900);
}

/* Contact */
.contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.contact-info .info-item {
  margin-bottom: 1.5rem;
}
.contact-info strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}
.contact-info p, .contact-info a {
  color: var(--gray-800);
  font-size: 1.05rem;
}
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.social-btn:hover {
  background: var(--green-100);
  color: var(--green-700);
}
.social-btn svg { width: 18px; height: 18px; }

.contact-form-wrap {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.15rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
}
.checkbox-group input { width: auto; margin-top: 0.2rem; }
.hidden { position: absolute; left: -9999px; }

.map-section {
  margin-top: 2rem;
}
.map-section h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.map-note {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}
.map-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
}
.map-placeholder p {
  margin-top: 1rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand img {
  height: 176px; /* dublat față de dimensiunea anterioară din footer */
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(1.1);
  object-fit: contain;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.45rem;
}
.footer-links a:hover { color: var(--green-400); }
.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 1.25rem;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-content p {
  flex: 1;
  min-width: 260px;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .despre-grid,
  .proiecte-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .despre-image img { height: 280px; }
  .despre-card { position: static; margin-top: 1rem; }
  .nav {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .menu-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .hero-badge { flex-direction: column; }
  .section { padding: 3.5rem 0; }
}
