/* ============================================
   BP Matic — Style System
   Dark Premium Theme
   ============================================ */

/* --- Reset & Variables --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  /* Colors */
  --bg:            #0D1B2A;
  --surface:       #112233;
  --surface-2:     #152840;
  --surface-3:     #1a3050;
  --accent:        #00B4D8;
  --accent-light:  #48CAE4;
  --accent-dark:   #0090AB;
  --gold:          #F4A261;
  --whatsapp:      #25D366;
  --whatsapp-dark: #1DA851;
  --text:          #F0F4F8;
  --text-secondary:#A8C0D6;
  --text-muted:    #6B8CAE;
  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(0,180,216,0.3);
  --danger:        #E63946;

  /* Spacing (4px scale) */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem;
  --s12: 3rem; --s16: 4rem; --s20: 5rem; --s24: 6rem;

  /* Radius */
  --r: 0.5rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-accent: 0 0 24px rgba(0,180,216,0.15);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent-light); }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}

.section-title { margin-bottom: var(--s6); }
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto var(--s12);
}

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

.section {
  padding: var(--s20) 0;
}

.section--alt {
  background: var(--surface);
}

.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s4) var(--s8);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1.4;
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,211,102,0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-accent);
}
.btn--ghost:hover {
  background: rgba(0,180,216,0.1);
  color: var(--accent-light);
  border-color: var(--accent);
}

.btn--accent {
  background: var(--accent);
  color: var(--bg);
}
.btn--accent:hover {
  background: var(--accent-light);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn--sm {
  padding: var(--s2) var(--s5);
  font-size: 0.875rem;
}

/* WhatsApp icon inline SVG */
.wa-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--s4) 0;
  transition: all var(--duration) var(--ease);
  background: transparent;
}

.nav.scrolled {
  background: rgba(13,27,42,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: var(--s3) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
}

.nav__logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s8);
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}
.nav__links a:hover { color: var(--text); }

.nav__cta { margin-left: var(--s4); }

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s2);
}
.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--duration) var(--ease);
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,42,0.92) 0%,
    rgba(13,27,42,0.75) 50%,
    rgba(13,27,42,0.88) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: var(--s24) var(--s6);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: rgba(0,180,216,0.1);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-full);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: var(--s8);
}

.hero h1 {
  margin-bottom: var(--s6);
}
.hero h1 .highlight { color: var(--accent); }

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: var(--s10);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s8);
}

.hero__social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero__stars { color: var(--gold); letter-spacing: 2px; }

/* --- About (Despre noi) --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s12);
  align-items: stretch;
  text-align: left;
}

.about__text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--s4);
}

.about__stats {
  display: flex;
  gap: var(--s8);
  margin-top: var(--s8);
  padding-top: var(--s8);
  border-top: 1px solid var(--border);
}

.about__stat { text-align: center; flex: 1; }

.about__stat-number {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
}

.about__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--s1);
}

.about__image {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.about__image-block {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  flex: 1;
  min-height: 200px;
}

.about__image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__image-caption {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  background: var(--surface-2);
  border-radius: var(--r);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* --- Features (De ce BP Matic?) --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
  transition: all var(--duration) var(--ease);
}
.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,180,216,0.1);
  border-radius: var(--r);
  margin-bottom: var(--s4);
  color: var(--accent);
  font-size: 1.5rem;
}

.feature-card h3 {
  margin-bottom: var(--s2);
  font-size: 1.1rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Products --- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}
.product-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.product-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--surface-2);
}

.product-card__body {
  padding: var(--s5);
}

.product-card h3 {
  margin-bottom: var(--s2);
}
.product-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--s4);
}

/* --- Services --- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s6);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
  display: flex;
  gap: var(--s6);
  align-items: flex-start;
  transition: all var(--duration) var(--ease);
}
.service-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,180,216,0.1);
  border-radius: var(--r);
  color: var(--accent);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.service-card h3 { margin-bottom: var(--s2); }
.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--s4);
}

/* --- Testimonials --- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s6);
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
  position: relative;
}

.testimonial-card__stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: var(--s4);
}

.testimonial-card blockquote {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--s4);
}

.testimonial-card__author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--s4);
  right: var(--s6);
  font-size: 4rem;
  color: rgba(0,180,216,0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

/* --- FAQ --- */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}
.faq__item[open] {
  border-color: var(--border-accent);
}

.faq__item summary {
  padding: var(--s5) var(--s6);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  list-style: none;
  color: var(--text);
  transition: color var(--duration) var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item summary:hover { color: var(--accent-light); }

.faq__answer {
  padding: 0 var(--s6) var(--s6);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Zone Deservite --- */
.zones__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
}

.zone-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}
.zone-chip:hover {
  border-color: var(--border-accent);
  color: var(--text);
}
.zone-chip--primary {
  background: rgba(0,180,216,0.1);
  border-color: var(--border-accent);
  color: var(--accent);
  font-weight: 600;
}

/* --- Contact --- */
.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: stretch;
  margin-bottom: var(--s6);
  text-align: left;
}

.contact__row .map-placeholder,
.contact__row .map-container {
  min-height: 0;
  height: 100%;
}

.contact__row .map-container iframe {
  min-height: 0;
  height: 100%;
}

.contact-location {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
  display: flex;
  flex-direction: column;
}

.contact-location h3 {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s4);
  color: var(--accent);
}

.contact-location p,
.contact-location a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-location__maps-link {
  margin-top: auto;
  padding-top: var(--s4);
  width: 100%;
  justify-content: center;
}

.contact__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
  text-align: left;
}

.contact__wa-btn {
  justify-content: center;
  width: 100%;
}

.contact__schedule {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
}

.contact__schedule h3 {
  margin-bottom: var(--s4);
  color: var(--accent);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.schedule-table td {
  padding: var(--s2) 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.schedule-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text);
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table .closed { color: var(--text-muted); }

/* Map placeholder */
.map-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  color: var(--text-muted);
  padding: var(--s6);
}
.map-placeholder:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}
.map-placeholder__icon { font-size: 2rem; }
.map-placeholder p { font-size: 0.85rem; margin: 0; }

.map-container {
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 200px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: none;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s8);
  margin-bottom: var(--s12);
}

.footer__brand .nav__logo {
  font-size: 1.3rem;
  margin-bottom: var(--s4);
  display: inline-block;
}
.footer__brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer__col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--s4);
}

.footer__col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: var(--s1) 0;
  transition: color var(--duration) var(--ease);
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
}

.footer__legal {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: var(--s4);
}
.footer__socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: var(--r);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--duration) var(--ease);
}
.footer__socials a:hover {
  background: rgba(0,180,216,0.1);
  color: var(--accent);
}

/* --- Sticky WhatsApp Button --- */
.sticky-wa {
  position: fixed;
  bottom: var(--s6);
  right: var(--s6);
  z-index: 1000;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--duration) var(--ease);
  color: #fff;
}
.sticky-wa:hover {
  background: var(--whatsapp-dark);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.sticky-wa svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.sticky-wa.pulse {
  animation: waPulse 2s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 12px rgba(37,211,102,0.1); }
}

.sticky-wa.hidden { opacity: 0; pointer-events: none; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13,27,42,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: var(--s6);
    gap: var(--s4);
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open { display: flex; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* Hamburger animation */
  .nav__hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__hamburger.open span:nth-child(2) { opacity: 0; }
  .nav__hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .about__grid { grid-template-columns: 1fr; }
  .about__image { order: -1; }
  .about__image-block { min-height: 240px; }
  .features__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; }
  .contact__row .map-placeholder,
  .contact__row .map-container,
  .contact__row .map-container iframe { min-height: 260px; height: 260px; }
  .contact__bottom { grid-template-columns: 1fr; }

  .service-card { flex-direction: column; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer__bottom { flex-direction: column; text-align: center; }

  .hero__content { padding: var(--s16) var(--s4); }

  .section { padding: var(--s12) 0; }

  .sticky-wa {
    width: 52px;
    height: 52px;
    bottom: var(--s4);
    right: var(--s4);
  }
  .sticky-wa svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .testimonials__grid { grid-template-columns: 1fr; }
}
