/* style.css - VERIFICAT */

/* 1. VARIABILE */
:root {
  --primary-color: #009999;
  --primary-dark: #007a7a;
  --dark-bg: #1e293b;
  --text-main: #334155;
  --accent-color: #f59e0b;
  --accent-hover: #d97706;
  --bg-body: #f1f5f9;
  --bg-white: #ffffff;
  --border-radius: 8px;
  --container-width: 1200px;
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 2. RESETARE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

html {
  /* Plasă de siguranță: taie orice depășire orizontală accidentală.
     'clip' (spre deosebire de 'hidden') nu strică header-ul sticky. */
  overflow-x: clip;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 3. UTILITARE */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn-accent {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 12px 28px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 24px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

/* 4. HEADER */
.site-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  margin-left: 25px;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

/* 5. HERO — fundal desenat (gradient navy + grilă tehnică), consistent cu bannerele */
.hero {
  position: relative;
  min-height: 560px;
  background:
    radial-gradient(ellipse at 75% 15%, rgba(0, 153, 153, 0.28), transparent 55%),
    linear-gradient(160deg, #0f172a 0%, var(--dark-bg) 55%, #0e3a40 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  width: 100%;
  border-bottom: 4px solid var(--primary-color);
}

/* Grilă fină, stil schiță tehnică / blueprint */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 60px 20px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 18px;
}

/* Bifele de încredere de sub butoane */
.hero-points {
  display: flex;
  gap: 10px 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  color: #5eead4;
  flex-shrink: 0;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: rgba(255,255,255, 0.9);
}

/* 6. GRID SERVICII (Layout-ul rupt) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: -50px;
  margin-bottom: 60px;
  position: relative;
  z-index: 10;
}

.card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-top: 5px solid var(--primary-color);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

.card h3 {
  color: var(--dark-bg);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.card-img-wrapper {
    height: 180px; /* Înălțime fixă pentru uniformitate */
    margin: 20px 0; /* Spațiu sus și jos față de text */
    border-radius: var(--border-radius);
    overflow: hidden; /* Ascunde părțile din poză care ies din cadru */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1); /* O umbră interioară fină */
}

/* Stilul imaginii propriu-zise */
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* MAGIC: Taie poza ca să umple spațiul fără să o deformeze */
    transition: transform 0.5s ease;
}

/* Efect de zoom fin când pui mouse-ul pe tot cardul */
.card:hover .card-img-wrapper img {
    transform: scale(1.1);
}



/* =========================================
   7. TOP BAR (CONTACT RAPID + MESAJ)
   ========================================= */
.top-bar {
  background-color: var(--dark-bg);
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between; /* Cheia succesului: Împinge elementele la extremități */
  align-items: center;
}

/* Stil pentru textul din stânga */
.top-msg {
  font-weight: 500;
  color: #cbd5e1; /* Un alb-gri elegant */
  letter-spacing: 0.5px;
}

/* Grupul de contacte din dreapta */
.top-contacts {
  display: flex;
  align-items: center;
  gap: 15px; /* Spațiul dintre telefon și mail */
}

.contact-item {
  color: #e2e8f0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
  font-weight: 600;
}

.contact-item:hover {
  color: var(--accent-color);
}

.divider {
  color: #475569;
}

/* Adaptare pentru Telefon (Mobile) */
@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column; /* Le pune unul sub altul */
    text-align: center;
    gap: 5px;
  }
  
  .top-msg {
    display: none; /* Sfat: Ascundem textul lung pe telefon ca să nu ocupe ecranul degeaba */
  }
  
  .top-contacts {
    justify-content: center;
    width: 100%;
    font-size: 0.85rem;
    flex-wrap: wrap; /* pe ecrane foarte înguste telefonul și emailul trec pe rânduri separate */
  }
  
  .divider {
    display: none; /* Ascundem bara verticală pe mobil */
  }
}

/* =========================================
   8. MENIU MOBIL (RESPONSIVE)
   ========================================= */

/* Stilul pentru butonul Hamburger (implicit ascuns pe Desktop) */
.hamburger {
  display: none; /* Pe laptop nu se vede */
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s;
}

/* REGULI STRICT PENTRU TELEFON (Ecran sub 768px) */
@media (max-width: 768px) {
  
  /* 1. Ajustăm Logo-ul să nu ocupe tot ecranul */
  .logo {
    font-size: 1.1rem; /* Micșorăm textul */
    max-width: 70%;    /* Să nu se lovească de buton */
  }
  
  .logo-img {
    height: 30px !important; /* Micșorăm poza logo */
  }

  /* 2. Facem butonul Hamburger vizibil */
  .hamburger {
    display: flex; 
  }

  /* 3. Transformăm meniul orizontal într-unul vertical ascuns */
  .nav-menu {
    position: absolute;
    top: 100%; /* Imediat sub header */
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column; /* Elemente unul sub altul */
    align-items: center;    /* Centrate */
    padding: 20px 0;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    
    /* Ascundem meniul implicit */
    display: none; 
    border-top: 1px solid #eee;
  }

  /* Clasa care va fi adăugată de JavaScript când deschidem meniul */
  .nav-menu.active {
    display: flex; /* Când e activ, devine vizibil */
    animation: slideDown 0.3s ease forwards;
  }

  /* Stiluri pentru link-uri pe mobil */
  .nav-menu a {
    margin: 10px 0; /* Spațiu între link-uri */
    font-size: 1.1rem;
    margin-left: 0; /* Anulăm marginea de desktop */
  }

  /* Butonul de ofertă pe mobil */
  .nav-menu .btn-accent {
    margin-left: 0 !important;
    width: 80%; /* Buton lat pe telefon */
    text-align: center;
  }
  /* 1. Hero pe telefon: înălțime naturală + titlu mai mic */
  .hero {
    min-height: 0;
  }

  .hero-content {
    padding: 50px 20px 44px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-points {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* 2. Mutăm cardurile mai jos, să nu acopere butoanele */
  .services-grid {
    margin-top: 0;        /* ANULĂM acel -50px de pe desktop */
    padding-top: 30px;    /* Le împingem puțin mai jos */
    z-index: 1;
  }
  
  /* 3. Aranjăm butoanele din Hero unul sub altul pe ecrane foarte mici */
  .hero-content div {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-content .btn-primary,
  .hero-content .btn-accent {
    width: 100%;       /* Butoane late, ușor de apăsat cu degetul */
    display: block;    /* Să ocupe tot rândul */
  }

}

/* Mică animație de alunecare */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   9. FOOTER COMPLEX (3 COLOANE)
   ========================================= */
.site-footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding-top: 50px;
  margin-top: auto; /* Îl împinge jos de tot */
  font-size: 0.95rem;
  border-top: 4px solid var(--primary-color); /* O dungă colorată sus pentru stil */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Coloane egale */
  gap: 40px; /* Spațiu între coloane */
  padding-bottom: 40px;
}

.footer-col h4 {
  color: var(--primary-color); /* Titlurile cu turcoaz */
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

/* O linie mică sub titluri */
.footer-col h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
  margin-top: 8px;
  border-radius: 2px;
}

.footer-col p {
  color: #cbd5e1; /* Text gri-deschis */
  margin-bottom: 10px;
  line-height: 1.6;
  overflow-wrap: anywhere; /* email-ul și IBAN-ul nu mai pot ieși din coloană */
}

.footer-col strong {
  color: #fff; /* Datele importante cu alb */
}

.program-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  margin-top: 10px;
  border: 1px solid var(--primary-color);
}

/* ACTUALIZARE: Bara de jos (Copyright Centrat + Linkuri Stânga) */
.footer-bottom {
  background-color: #0f172a;
  padding: 15px 0;
  font-size: 0.85rem;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative; /* Necesar pentru poziționare */
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  /* Acest lucru asigură că elementele au loc, dar copyright-ul va fi scos din flux */
  position: relative; 
  height: 30px; /* Dăm o înălțime fixă ca să nu se suprapună */
}

/* 1. Link-urile din stânga */
.footer-legal {
  display: flex;       /* Folosim Flexbox pentru aliniere perfectă */
  align-items: center; /* Aliniem vertical linia | cu textul */
  gap: 15px;           /* Spațiu egal între elemente */
  z-index: 2;          /* Să fie deasupra */
}

.footer-legal a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
  /* Am scos margin-right pentru că folosim 'gap' mai sus */
}

.footer-legal a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Stil pentru linia despărțitoare | */
.footer-legal span {
  opacity: 0.3;
  display: inline-block;
  margin-top: -2px; /* O mică ajustare fină pe verticală dacă pare prea jos */
}

/* 2. Copyright-ul (FIX ÎN CENTRU) */
.copyright {
  position: absolute;  /* Îl desprindem de restul elementelor */
  left: 50%;           /* Îl punem la jumătatea ecranului */
  transform: translateX(-50%); /* Îl tragem înapoi cu jumătate din lățimea lui */
  white-space: nowrap; /* Să nu se rupă rândul */
  z-index: 1;
}

/* --- MOBIL: footer pe o singură coloană + anulăm poziționarea absolută --- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr; /* coloanele una sub alta — altfel ies din ecran */
    gap: 30px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    height: auto;
    gap: 15px;
    justify-content: center;
  }

  .copyright {
    position: static; /* Revine la comportamentul normal */
    transform: none;
    text-align: center;
    white-space: normal; /* pe ecrane înguste textul are voie să se rupă */
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.page-header {
    background-color: #1e293b; /* Culoare Navy */
    color: white;
    min-height: 250px; /* Înălțimea fixă care îți rezolvă problema */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 50px;
    border-bottom: 4px solid #009999;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* =========================================
   10. MODUL COOKIE (GDPR PRO)
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #0f172a;
  color: #fff;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  border-top: 2px solid var(--accent-color);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  text-align: center;
  max-width: 900px;
}

.cookie-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

/* Butonul ACCEPT (Portocaliu) */
.btn-accept {
  background-color: var(--accent-color);
  color: white;
  border: none;
}
.btn-accept:hover {
  background-color: #d97706;
}

/* Butonul REFUZ (Transparent cu chenar) */
.btn-deny {
  background-color: transparent;
  color: #cbd5e1;
  border: 1px solid #cbd5e1;
}
.btn-deny:hover {
  background-color: rgba(255,255,255,0.1);
  color: white;
  border-color: white;
}

/* Pe desktop le punem pe un singur rând */
@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .cookie-content {
    text-align: left;
  }
}
/* =========================================
   11. ICONURI SVG + BENZI DE ÎNCREDERE (index)
   ========================================= */

/* Icon SVG mic, aliniat cu textul — folosit peste tot în loc de emoticoane */
.icon-inline {
  vertical-align: -3px;
  flex-shrink: 0;
}

/* Iconul din carduri — cerc turcoaz discret, în locul emoticoanelor */
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 153, 153, 0.10);
  color: var(--primary-color);
  margin-bottom: 16px;
}

/* Banda cu cifre de încredere */
.stats-band {
  background: var(--bg-white);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 40px 0;
  margin-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
}

.stat-label {
  color: var(--text-main);
  opacity: 0.8;
  font-weight: 600;
}

/* Banda CTA de dinaintea footer-ului */
.cta-band {
  background: var(--dark-bg);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-left: 5px solid var(--accent-color);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 6px;
}

.cta-band p {
  color: #cbd5e1;
  margin: 0;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cta-band {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Buton flotant WhatsApp (adaugat de generator) ===== */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }
@media (max-width: 600px) {
  .wa-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
}
