/* =============================================================================
   ElectroBonus — style.css
   -----------------------------------------------------------------------------
   Suprascrie / completează Bootstrap 5.
   TOATE valorile importante sunt în :root, ca să poți customiza rapid:
   schimbi o singură variabilă și se actualizează în toată pagina.
   ============================================================================= */

:root {
  /* ---------- CULORI (albastru / alb / gri deschis) ---------- */
  --eb-blue:          #3c71b5;   /* albastru principal */
  --eb-blue-dark:     #0D3B66;   /* albastru închis (titluri, footer) */
  --eb-blue-bright:   #5ac4ff;   /* albastru accent (CTA, hover) */
  --eb-blue-soft:     #E3F0FF;   /* albastru foarte deschis (fundaluri) */
  --eb-white:         #FFFFFF;
  --eb-gray-50:       #F4F7FB;   /* gri deschis – secțiuni alternative */
  --eb-gray-200:      #E5E9F0;   /* borduri subtile */
  --eb-gray-500:      #6B7280;   /* text secundar */
  --eb-ink:           #1B2533;   /* text principal */

  /* ---------- CASETA DIN HERO (fundal albastru semitransparent) ---------- */
  --eb-hero-box-bg:   rgba(13, 59, 102, 0.55);
  --eb-hero-box-bg:   rgba(4, 30, 59, 0.75);

  /* Imaginile de fundal ale hero-ului – DOUĂ variante.
     Comutarea se face printr-un @media query (vezi .eb-hero mai jos).
     Înlocuiește cu: url("links/hero-desktop.jpg") / url("links/hero-mobile.jpg").
     Dimensiuni recomandate:  desktop 1920x1080 px  ·  mobil 900x1600 px        */
  --eb-hero-image-desktop: url("links/image_hero-desktop.png");
  --eb-hero-image-mobile:  url("links/image_hero-mobile.png");
  --eb-hero-tint:     linear-gradient(rgba(13,59,102,0.25), rgba(13,59,102,0.45));

  /* ---------- TIPOGRAFIE (Roboto) ---------- */
  --eb-font:          'Roboto', system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---------- FORME & SPAȚIERE ---------- */
  --eb-radius:        16px;
  --eb-radius-sm:     10px;
  --eb-shadow:        0 10px 30px rgba(13, 59, 102, 0.10);
  --eb-shadow-hover:  0 18px 44px rgba(13, 59, 102, 0.18);
  --eb-section-y:     3.5rem;    /* spațiu vertical între secțiuni */
  --eb-maxwidth:      1200px;
}

/* =============================================================================
   BAZĂ
   ============================================================================= */
html { scroll-behavior: smooth; }

body {
  font-family: var(--eb-font);
  color: var(--eb-ink);
  background: var(--eb-white);
  font-weight: 400;
  line-height: 1.65;
}

.container { max-width: var(--eb-maxwidth); }

a { text-decoration: none; }

/* =============================================================================
   NAVBAR  (NU este sticky — fără position:fixed/sticky)
   ============================================================================= */
.eb-navbar {
  background: var(--eb-white);
  border-bottom: 1px solid var(--eb-gray-200);
  padding-block: .6rem;
}

.eb-brand img { height: 40px; width: auto; display: block; }

.eb-nav-link {
  color: var(--eb-blue-dark) !important;
  font-weight: 500;
  padding-inline: .9rem !important;
  border-radius: var(--eb-radius-sm);
  transition: color .2s ease, background .2s ease;
}
.eb-nav-link:hover,
.eb-nav-link:focus { color: var(--eb-blue-bright) !important; background: var(--eb-blue-soft); }

/* Butonul "Contact" – stil ghost */
.eb-btn-ghost {
  color: var(--eb-blue) !important;
  border: 1.5px solid var(--eb-blue);
  font-weight: 500;
  padding: .45rem 1.3rem;
  border-radius: 999px;
  transition: all .2s ease;
}
.eb-btn-ghost:hover {
  background: var(--eb-blue);
  color: var(--eb-white) !important;
}

.navbar-toggler { border-color: var(--eb-gray-200); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--eb-blue-soft); }

/* =============================================================================
   HERO  (full viewport height – 100vh, desktop + mobil)
   -----------------------------------------------------------------------------
   DESKTOP (>=768px): imagine peisaj (landscape) + casetă în STÂNGA, centrată
                      pe verticală (sus-jos).
   MOBIL   (<768px) : imagine portret (portrait) + casetă STÂNGA-SUS, la ~24%
                      de marginea de sus.  (vezi @media mai jos)
   ============================================================================= */
.eb-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;                 /* desktop: centrat pe verticală */
  /* background-image: var(--eb-hero-tint), var(--eb-hero-image-desktop); */
  background-image: var(--eb-hero-image-desktop);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: left;                    /* text aliniat la stânga */
  padding: 2rem 0;
  
  
}
/* container pe toată lățimea, ca să putem alinia caseta la stânga */
.eb-hero .container { width: 100%; }

/* Caseta cu fundal albastru semitransparent ce conține textul + CTA */
.eb-hero-box {
  max-width: 560px;
  margin: 0;                           /* desktop: lipită de stânga conținutului */
  background: var(--eb-hero-box-bg);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  /* border-radius: var(--eb-radius); */
  padding: 2.6rem 2rem;
  box-shadow: var(--eb-shadow);
  /* mix-blend-mode: multiply; */
}

/* ---- MOBIL: imagine portret + casetă stânga-sus (~24% de la margine) ---- */
@media (max-width: 767.98px) {
  .eb-hero {
    align-items: flex-start;           /* casetă spre partea de sus */
    padding-top: 2vh;                 /* ~20–30% din înălțimea ecranului */
    /* background-image: var(--eb-hero-tint), var(--eb-hero-image-mobile); */
    background-image:  var(--eb-hero-image-mobile);
  }
  .eb-hero-box {
    max-width: 100%;                   /* folosește lățimea containerului */
  }
  
}

.eb-hero-title {
  color: var(--eb-white);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 1.6rem;
}

/* Butonul CTA principal */
.eb-btn-cta {
  background: var(--eb-blue-bright);
  color: var(--eb-white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: .85rem 2.2rem;
  border-radius: 999px;
  border: none;
  box-shadow: 0 8px 22px rgba(46, 139, 255, 0.45);
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
}
.eb-btn-cta:hover,
.eb-btn-cta:focus {
  background: var(--eb-blue);
  color: var(--eb-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 139, 255, 0.55);
}

/* =============================================================================
   SECȚIUNI GENERICE
   ============================================================================= */
.eb-section { padding-block: var(--eb-section-y); }
.eb-section--alt { background: var(--eb-gray-50); }

.eb-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--eb-blue-bright);
  margin-bottom: .6rem;
}

.eb-section-title {
  color: var(--eb-blue-dark);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.5px;
  margin: 0 0 1.4rem;
}

.eb-lead {
  color: var(--eb-gray-500);
  font-size: 1.08rem;
  max-width: 760px;
  margin-bottom: 2.6rem;
}
.text-center .eb-lead { margin-left: auto; margin-right: auto; }

/* Paragrafe mecanism */
.eb-prose { max-width: 820px; }
.eb-prose p { margin-bottom: 1.1rem; font-size: 1.05rem; }
.eb-prose strong { color: var(--eb-blue); }

/* =============================================================================
   BRANDURI PARTENERE
   ============================================================================= */
.eb-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 1rem;
}
.eb-brand-logo {
  background: var(--eb-white);
  border: 1px solid var(--eb-gray-200);
  border-radius: var(--eb-radius-sm);
  padding: 1.1rem 1.6rem;
  box-shadow: var(--eb-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.eb-brand-logo:hover { transform: translateY(-4px); box-shadow: var(--eb-shadow-hover); }
.eb-brand-logo img { height: 60px; width: auto; display: block; }

/* =============================================================================
   CARDURI  — grilă custom peste Bootstrap
   · Desktop (>=768px): toate 5 pe un singur rând
   · Mobil   (<768px) : 2 pe rând, DAR primul card singur și centrat,
                        urmat de 2 rânduri a câte 2 carduri.
   ============================================================================= */
.eb-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);   /* mobil: 2 pe rând */
}

/* Mobil: primul card ocupă tot rândul, dar e centrat la jumătate de lățime */
@media (max-width: 767.98px) {
  .eb-cards > .eb-card-col:first-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.5rem);
  }
}

/* Desktop: 5 carduri pe un rând */
@media (min-width: 768px) {
  .eb-cards {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.eb-card-col { display: flex; }

.eb-card {
  background: var(--eb-white);
  border: 1px solid var(--eb-gray-200);
  border-radius: var(--eb-radius);
  overflow: hidden;
  box-shadow: var(--eb-shadow);
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.eb-card:hover { transform: translateY(-6px); box-shadow: var(--eb-shadow-hover); }

.eb-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--eb-blue-soft); }
.eb-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.eb-card:hover .eb-card-media img { transform: scale(1.05); }

.eb-card-body {
  padding: 1.1rem 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}
.eb-card-title {
  color: var(--eb-blue-dark);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1rem 0 .25rem;
}
.eb-card-subtitle {
  color: var(--eb-gray-500);
  font-size: .92rem;
  margin: 1rem 0;
  flex: 1;
}

/* Butonul din card -> pagina de detalii */
.eb-btn-card {
  background: transparent;
  color: var(--eb-blue);
  border: 1.5px solid var(--eb-blue);
  font-weight: 500;
  border-radius: 999px;
  padding: .5rem 1.2rem;
  align-self: center;
  transition: all .2s ease;
}
.eb-btn-card:hover {
  background: var(--eb-blue);
  color: var(--eb-white);
}

/* =============================================================================
   SECȚIUNEA „Produse Comandă" — grilă separată
   · Desktop (>=768px): 4 carduri / rând
   · Mobil   (<768px) : 2 carduri / rând (fără primul card centrat)
   Reutilizează stilul cardurilor existente (.eb-card, .eb-card-media etc.)
   ============================================================================= */
.eb-order-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  /* mobil: 2 pe rând */
}

@media (min-width: 768px) {
  .eb-order-cards {
    grid-template-columns: repeat(4, 1fr);
    /* desktop: 4 pe rând */
    gap: 1.5rem;
  }
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.eb-footer {
  background: var(--eb-blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 3rem 1.6rem;
}
.eb-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1.6rem;
}
.eb-footer-brand { font-weight: 900; font-size: 1.4rem; color: var(--eb-white); margin: 0; }
.eb-footer-tagline { margin: 0; color: rgba(255, 255, 255, 0.7); }
.eb-footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.eb-footer-links a { color: rgba(255, 255, 255, 0.85); transition: color .2s ease; }
.eb-footer-links a:hover { color: var(--eb-blue-bright); }
.eb-footer-copy { margin: 1.4rem 0 0; font-size: .88rem; color: rgba(255, 255, 255, 0.6); }

@media (max-width: 768px) {
    .eb-footer-links p {
        text-align: center !important;
    }
}

/* =============================================================================
   ACCESIBILITATE
   ============================================================================= */
:focus-visible { outline: 3px solid var(--eb-blue-bright); outline-offset: 2px; }

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