/* ====== FONT PERSONALIZAT ====== */
@font-face {
  font-family: 'TihonFont';
  src: url('Fonts/TihonFont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ====== STILURI DE BAZĂ ====== */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #333;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* container pentru slideshow */
.background-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
}
.background-slideshow img.active {
  opacity: 1;
}

/* ====== BARA DE NAVIGARE ====== */
.navbar {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(80px, 12vw, 150px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* ====== CONȚINUT NAVBAR ====== */
.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1300px;
  height: 100%;
  position: relative;
  padding: 0 10px;
}

/* ====== CONTAINER LOGO + BURGER ====== */
.logo-burger-container {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  z-index: 11;
}

/* ====== LOGO ====== */
.logo img {
  max-height: clamp(40px, 8vw, 80px);
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

/* ====== BURGER MENU ====== */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: clamp(4px, 1vw, 6px);
  transition: transform 0.3s ease;
}

.nav-toggle:hover {
  transform: scale(1.1);
}

.nav-toggle span {
  display: block;
  width: clamp(25px, 6vw, 30px);
  height: clamp(3px, 0.8vw, 4px);
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ====== TEXT CENTRAL ====== */
.center-text {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'TihonFont', sans-serif;
  font-size: clamp(24px, 6vw, 80px);
  color: white;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  letter-spacing: clamp(1px, 0.3vw, 2px);
  font-weight: bolder;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  user-select: none;
  white-space: nowrap;
  transition: text-shadow 0.3s ease;
  text-align: center;
  width: 100%;
  top: 50%;
}

.center-text:hover {
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* ====== ANIMAȚII ====== */
@keyframes fadeIn {
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes blockFadeIn {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ====== BUTON TELEFON ====== */
.phone-btn { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: clamp(8px, 2vw, 15px) clamp(15px, 3vw, 30px); 
  border-radius: 10px; 
  background-color: white; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  color: rgb(15, 97, 144); 
  font-weight: bolder; 
  text-decoration: none; 
  font-size: clamp(14px, 2.5vw, 20px); 
  transition: all 0.3s ease; 
  white-space: nowrap;
} 

.phone-btn:hover { 
  background-color: rgb(21, 125, 185); 
  color: white; 
}

/* ====== BLOC PRINCIPAL / CONTACT ====== */
.content-block {
  display: flex;
  width: 90%;             
  max-width: 1400px;      
  height: auto;
  min-height: 400px;
  margin: 20px auto;      
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  align-items: stretch;
  animation: blockFadeIn 1s ease forwards;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .content-block {
    flex-direction: row;
    height: 500px;
  }
}

/* ====== TEXT CONTAINER ====== */
.text-container {
  width: 100%;
  padding: clamp(20px, 4vw, 50px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  max-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(26,128,182,0.6) transparent;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  text-align: justify;
  line-height: 1.35;
  letter-spacing: 0.3px;
  font-family: "Arial Rounded MT Bold", "Arial", sans-serif;
  font-weight: 700;
  color: #0b3c5d;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
  position: relative;
}

@media (min-width: 1024px) {
  .text-container {
    width: 50%;
    border-radius: 10px 0 0 10px;
  }
}

/* Scrollbar */
.text-container::-webkit-scrollbar {
  width: 6px;
}
.text-container::-webkit-scrollbar-track { background: transparent; }
.text-container::-webkit-scrollbar-thumb {
  background-color: rgba(26,128,182,0.6);
  border-radius: 3px;
}

/* TITLU */
.text-container h2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(28px, 5vw, 42px);
  color: #104e7a;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  border-left: 6px solid #1a80b6;
  padding-left: 15px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.text-container h2 span {
  display: block;
}

/* PARAGRAFE */
.text-container p {
  font-size: clamp(14px, 2.5vw, 18px);
  margin-bottom: clamp(12px, 3vw, 18px);
  color: #0d2f44;
  text-indent: clamp(20px, 4vw, 30px);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.12);
}

/* LISTĂ */
.text-container ul {
  margin: clamp(15px, 4vw, 25px) 0;
  padding-left: clamp(15px, 4vw, 25px);
  list-style: none;
}
.text-container ul li {
  margin-bottom: clamp(8px, 2vw, 12px);
  font-size: clamp(14px, 2.5vw, 17px);
  color: #0b3c5d;
  position: relative;
  padding-left: clamp(20px, 4vw, 28px);
  line-height: 1.3;
}
.text-container ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #1a80b6;
  font-weight: bold;
  font-size: clamp(14px, 2.5vw, 18px);
}

/* TEXT EVIDENȚIAT */
.text-container strong {
  color: #104e7a;
  font-weight: 600;
}

/* VIDEO */
.image-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .image-container {
    width: 50%;
    height: 100%;
  }
}

.image-container video,
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ====== FORMULAR CONTACT MODERN ====== */
.form-container {
  width: 100%;
  padding: clamp(20px, 4vw, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.05);
}

@media (min-width: 1024px) {
  .form-container {
    width: 50%;
    border-radius: 0 10px 10px 0;
  }
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: clamp(15px, 3vw, 20px);
  padding: clamp(12px, 2.5vw, 15px) clamp(15px, 3vw, 20px);
  border-radius: 10px;
  border: 2px solid #1a80b6;
  font-size: clamp(14px, 2.5vw, 16px);
  font-family: "Arial", sans-serif;
  transition: all 0.3s ease;
  background-color: rgba(255,255,255,0.9);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #104e7a;
  box-shadow: 0 0 8px rgba(26,128,182,0.5);
  background-color: rgba(255,255,255,1);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #1a80b6;
  background-color: rgba(255,255,255,0.95);
}

.contact-form textarea { 
  resize: none; 
  min-height: 120px;
}

.contact-form button {
  padding: clamp(12px, 2.5vw, 15px);
  border-radius: 12px;
  border: none;
  background-color: #1a80b6;
  color: white;
  font-size: clamp(16px, 3vw, 18px);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-form button:hover {
  background-color: #104e7a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.messaging-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.msg-btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  background-color: #1a80b6;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.msg-btn:hover {
  background-color: #104e7a;
  transform: translateY(-1px);
}

.msg-btn.submit-btn {
  flex: 1 1 100%;
  background-color: #0d4f7f;
}

.msg-btn.submit-btn:hover {
  background-color: #0a3d62;
}

/* ====== BLOC SERVICII ====== */
.services-block {
  display: flex;
  flex-direction: column; 
  width: 90%;
  max-width: 1400px;
  margin: 20px auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: blockFadeIn 1s ease forwards;
  text-align: center;
  padding: clamp(15px, 3vw, 30px);
  height: auto;
}

.services-block .section-header h2 {
  font-size: clamp(28px, 5vw, 42px);
  color: #104e7a;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.services-block .section-header p {
  font-size: clamp(14px, 2.5vw, 18px);
  color: #0d2f44;
  margin-bottom: clamp(20px, 4vw, 40px);
}

/* ====== GRID CONTAINER PENTRU CARDURI ====== */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(15px, 3vw, 20px);
  padding: 10px 0;
}

/* ====== CARDURI ====== */
.service-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: clamp(15px, 3vw, 20px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.service-card img {
  width: 100%;
  height: clamp(150px, 30vw, 200px);
  object-fit: cover;
  margin-bottom: clamp(15px, 3vw, 20px);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.50);
}

.service-card h3 {
  font-size: clamp(16px, 3vw, 20px);
  color: #1a80b6;
  margin-bottom: clamp(10px, 2vw, 15px);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  text-align: center;
}

.service-card p {
  font-size: clamp(14px, 2.5vw, 16px);
  color: #0b3c5d;
  line-height: 1.4;
  font-weight: 550;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  text-align: center;
  flex-grow: 1;
}

/* ====== SHOWCASE GALLERY ====== */
.gallery-block.content-block {
  width: 90%;
  max-width: 1400px;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  animation: blockFadeIn 1s ease forwards;
  display: flex;
  flex-direction: column;
  height: clamp(300px, 50vw, 500px);
  padding: 0;
}

/* container galerie */
.gallery {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* pista de imagini */
.gallery-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: scrollGallery 200s linear infinite;
}

/* fiecare imagine ocupă tot spațiul vertical */
.gallery-track img {
  height: 100%;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0;
  transition: transform 0.4s ease, filter 0.3s ease;
  cursor: pointer;
}

/* efect la hover */
.gallery-track img:hover {
  transform: scale(1.08);
}

/* animația care mișcă toate imaginile orizontal */
@keyframes scrollGallery {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* oprește mișcarea la hover */
.gallery:hover .gallery-track {
  animation-play-state: paused;
}

/* ====== FOOTER ====== */
.site-footer {
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  color: #fff;
  z-index: 10;
  position: relative;
}

.site-footer .footer-content {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 28px) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(15px, 3vw, 24px);
  align-items: start;
}

@media (min-width: 768px) {
  .site-footer .footer-content {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

/* Text + layout */
.footer-col h4 {
  margin: 0 0 10px;
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 700;
}
.footer-col a {
  display: inline-block;
  color: #e9f2f8;
  text-decoration: none;
  margin: 4px 0;
  transition: color .25s ease, text-shadow .25s ease;
  font-size: clamp(14px, 2.5vw, 16px);
}
.footer-col a:hover {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.footer-logo {
  height: clamp(35px, 6vw, 48px);
  width: auto;
  display: block;
  margin-bottom: 10px;
}
.footer-title {
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  font-size: clamp(16px, 3vw, 18px);
}
.footer-tagline {
  color: #e9f2f8;
  opacity: .9;
  font-size: clamp(12px, 2vw, 14px);
  margin-top: 4px;
}
.footer-address {
  margin-top: 6px;
  color: #e9f2f8;
  opacity: .95;
  font-size: clamp(12px, 2vw, 14px);
}

/* ====== ICONIȚE sociale ====== */
.social-row {
  display: flex;
  gap: clamp(12px, 2.5vw, 18px);
  margin-top: 8px;
  align-items: center;
}
.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, filter .3s ease;
}
.social-row a:hover {
  transform: scale(1.1);
  filter: brightness(1.3);
}

.social-icon-full {
  width: clamp(35px, 6vw, 44px);
  height: clamp(35px, 6vw, 44px);
  object-fit: contain;
  display: block;
  transition: transform .3s ease, filter .3s ease;
}

/* ====== Linie de jos ====== */
.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(8px, 2vw, 12px) 0 clamp(12px, 2.5vw, 16px);
  color: #dfeaf1;
  font-size: clamp(12px, 2vw, 14px);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

/* ====== OFFCANVAS STYLES ====== */
.offcanvas-backdrop{
  position: fixed; 
  inset: 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 98;
}

.offcanvas{
  position: fixed;
  top: 0; 
  right: 0;
  width: min(86vw, 360px);
  height: 100dvh;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 99;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -8px 0 24px rgba(0,0,0,0.25);
  color: #fff;
}

.offcanvas.is-open{ 
  transform: translateX(0); 
}

.offcanvas-header{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.offcanvas-logo-img{
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.offcanvas-title{
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
  font-size: 18px;
}

.offcanvas-close{
  justify-self: end;
  width: 40px; 
  height: 40px;
  background: transparent; 
  border: 0; 
  color: #fff;
  font-size: 26px; 
  line-height: 1; 
  cursor: pointer;
}

.offcanvas-body{
  display: grid; 
  gap: 12px;
  padding: 20px;
}

.offcanvas-link{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 16px;
}

.offcanvas-link:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px);
}

.offcanvas-link:active{ 
  transform: translateY(0); 
}

.offcanvas-icon{
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.offcanvas-backdrop[hidden]{ 
  display: none !important; 
}

/* Stiluri specifice pentru fiecare platformă */
.off-viber {
  background: rgba(136, 79, 161, 0.2) !important;
  border-color: rgba(136, 79, 161, 0.4) !important;
}

.off-messenger {
  background: rgba(0, 132, 255, 0.2) !important;
  border-color: rgba(0, 132, 255, 0.4) !important;
}

.off-whatsapp {
  background: rgba(37, 211, 102, 0.2) !important;
  border-color: rgba(37, 211, 102, 0.4) !important;
}

.off-viber:hover {
  background: rgba(136, 79, 161, 0.3) !important;
}

.off-messenger:hover {
  background: rgba(0, 132, 255, 0.3) !important;
}

.off-whatsapp:hover {
  background: rgba(37, 211, 102, 0.3) !important;
}

/* —— PHONE ICON ONLY pe mobil —— */
@media (max-width: 768px){
  .phone-btn,
  .phone-btn:link,
  .phone-btn:visited,
  .phone-btn:hover,
  .phone-btn:active,
  .phone-btn:focus {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0;
    width: 54px !important;
    height: 54px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .phone-btn .label-full { display: none !important; }
  .phone-btn img.label-call {
    display: block !important;
    width: 54px !important;
    height: 54px !important;
    object-fit: contain;
    filter: none !important;
    border: 0;
  }
}

/* ====== BARA DE NAVIGARE ====== */
.navbar {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(80px, 12vw, 150px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* ====== CONȚINUT NAVBAR ====== */
.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  max-width: 1300px;
  height: 100%;
  position: relative;
  padding: 0 clamp(5px, 2vw, 15px);
}

/* ====== CONTAINER LOGO + BURGER ====== */
.logo-burger-container {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 15px);
  z-index: 11;
  flex-shrink: 0;
}

/* ====== LOGO ====== */
.logo img {
  max-height: clamp(35px, 6vw, 60px);
  width: auto;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo img:hover {
  transform: scale(1.1);
}

/* ====== BURGER MENU ====== */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: clamp(35px, 6vw, 45px);
  height: clamp(35px, 6vw, 45px);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: clamp(3px, 0.8vw, 5px);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  transform: scale(1.1);
}

.nav-toggle span {
  display: block;
  width: clamp(20px, 4vw, 25px);
  height: clamp(2px, 0.6vw, 3px);
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ====== TEXT CENTRAL ====== */
.center-text {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'TihonFont', Bold;
  font-size: clamp(16px, 4vw, 60px);
  color: white;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  letter-spacing: clamp(0.5px, 0.2vw, 1px);
  font-weight: bolder;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  user-select: none;
  white-space: nowrap;
  transition: text-shadow 0.3s ease;
  text-align: center;
  width: auto;
  top: 50%;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

.center-text:hover {
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* ====== BUTON TELEFON ====== */
.phone-btn { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: clamp(6px, 1.5vw, 12px) clamp(10px, 2vw, 20px); 
  border-radius: 8px; 
  background-color: white; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  color: rgb(15, 97, 144); 
  font-weight: bolder; 
  text-decoration: none; 
  font-size: clamp(12px, 2vw, 16px); 
  transition: all 0.3s ease; 
  white-space: nowrap;
  flex-shrink: 0;
  min-width: max-content;
} 

.phone-btn:hover { 
  background-color: rgb(21, 125, 185); 
  color: white; 
}

/* ====== FOOTER ====== */
.site-footer {
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  color: #fff;
  z-index: 10;
  position: relative;
}

.site-footer .footer-content {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(15px, 3vw, 25px) 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2.5vw, 20px);
  align-items: start;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer .footer-content {
    grid-template-columns: 1.2fr 1fr 1fr;
    text-align: left;
    gap: clamp(15px, 3vw, 24px);
  }
}

/* Text + layout */
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-col {
    align-items: flex-start;
  }
}

.footer-col h4 {
  margin: 0 0 8px;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: #e9f2f8;
  text-decoration: none;
  margin: 3px 0;
  transition: color .25s ease, text-shadow .25s ease;
  font-size: clamp(12px, 2vw, 14px);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-col a {
    text-align: left;
  }
}

.footer-col a:hover {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.footer-logo {
  height: clamp(30px, 5vw, 40px);
  width: auto;
  display: block;
  margin-bottom: 8px;
}

.footer-title {
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  font-size: clamp(14px, 2.5vw, 16px);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-title {
    text-align: left;
  }
}

.footer-tagline {
  color: #e9f2f8;
  opacity: .9;
  font-size: clamp(11px, 1.8vw, 13px);
  margin-top: 3px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-tagline {
    text-align: left;
  }
}

.footer-address {
  margin-top: 5px;
  color: #e9f2f8;
  opacity: .95;
  font-size: clamp(11px, 1.8vw, 13px);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-address {
    text-align: left;
  }
}

/* ====== ICONIȚE sociale ====== */
.social-row {
  display: flex;
  gap: clamp(8px, 1.5vw, 12px);
  margin-top: 6px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .social-row {
    justify-content: flex-start;
  }
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, filter .3s ease;
}

.social-row a:hover {
  transform: scale(1.1);
  filter: brightness(1.3);
}

.social-icon-full {
  width: clamp(25px, 4vw, 35px);
  height: clamp(25px, 4vw, 35px);
  object-fit: contain;
  display: block;
  transition: transform .3s ease, filter .3s ease;
}

/* ====== Linie de jos ====== */
.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(6px, 1.5vw, 10px) 0;
  color: #dfeaf1;
  font-size: clamp(10px, 1.8vw, 12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

/* ====== BLOC SERVICII ====== */
.services-block {
  display: flex;
  flex-direction: column; 
  width: 95%;
  max-width: 1400px;
  margin: clamp(15px, 3vw, 25px) auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: clamp(10px, 2vw, 15px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: blockFadeIn 1s ease forwards;
  text-align: center;
  padding: clamp(15px, 3vw, 25px);
  height: auto;
}

.services-block .section-header {
  margin-bottom: clamp(15px, 3vw, 25px);
}

.services-block .section-header h2 {
  font-size: clamp(24px, 5vw, 42px);
  color: #104e7a;
  margin-bottom: clamp(8px, 1.5vw, 12px);
  text-transform: uppercase;
  line-height: 1.2;
}

.services-block .section-header p {
  font-size: clamp(14px, 2.5vw, 18px);
  color: #0d2f44;
  margin-bottom: 0;
  line-height: 1.4;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== GRID CONTAINER PENTRU CARDURI ====== */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(12px, 2.5vw, 20px);
  padding: clamp(5px, 1vw, 10px) 0;
  width: 100%;
}

/* ====== BLOC SERVICII ====== */
.services-block {
  display: flex;
  flex-direction: column; 
  width: 95%;
  max-width: 1400px;
  margin: clamp(15px, 3vw, 25px) auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: clamp(10px, 2vw, 15px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: blockFadeIn 1s ease forwards;
  text-align: center;
  padding: clamp(15px, 3vw, 25px);
  height: auto;
}

.services-block .section-header {
  margin-bottom: clamp(15px, 3vw, 25px);
}

.services-block .section-header h2 {
  font-size: clamp(24px, 5vw, 42px);
  color: #104e7a;
  margin-bottom: clamp(8px, 1.5vw, 12px);
  text-transform: uppercase;
  line-height: 1.2;
}

.services-block .section-header p {
  font-size: clamp(14px, 2.5vw, 18px);
  color: #0d2f44;
  margin-bottom: 0;
  line-height: 1.4;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ====== GRID CONTAINER PENTRU CARDURI ====== */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(12px, 2.5vw, 20px);
  padding: clamp(5px, 1vw, 10px) 0;
  width: 100%;
}

/* ====== CARDURI CU IMAGINI CONSTANTE ====== */
.service-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: clamp(8px, 1.5vw, 12px);
  padding: clamp(12px, 2.5vw, 20px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  border: 1px solid rgba(26, 128, 182, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a80b6, #104e7a);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border-color: rgba(26, 128, 182, 0.3);
}

/* ====== IMAGINI CONSTANTE ====== */
.service-card .card-image-container {
  width: 100%;
  height: 200px; /* Înălțime constantă */
  margin-bottom: clamp(12px, 2.5vw, 18px);
  border-radius: clamp(6px, 1vw, 8px);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  position: relative;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: clamp(16px, 3vw, 20px);
  color: #1a80b6;
  margin-bottom: clamp(8px, 1.5vw, 12px);
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  text-align: center;
  line-height: 1.3;
}

.service-card p {
  font-size: clamp(13px, 2.2vw, 15px);
  color: #0b3c5d;
  line-height: 1.5;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  text-align: center;
  flex-grow: 1;
  margin: 0;
}

/* ====== EFECTE SPECIALE PENTRU CARDURI ====== */
.service-card {
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1a80b6, #104e7a);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* ====== ANIMAȚII PENTRU CARDURI ====== */
@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: cardAppear 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== SERVICES CARD IMAGE FIX (2025-11-11) =====
   Make images fill the container consistently, respecting margins and clarity.
*/
.services-container .service-card .card-image-container{
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;      /* raport stabil (4:3) */
  overflow: hidden !important;
  border-radius: 10px !important;
  display: block !important;
  margin: 0 auto clamp(12px, 2vw, 16px) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35) !important;
}

/* imaginea propriu-zisă */
.services-container .service-card .card-image-container img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;  /* umple perfect containerul */
  display: block !important;
  margin: 0 !important;
  transform: none !important;
  filter: none !important;
  border-radius: 10px !important;
}

/* pe ecrane foarte mici (telefoane) — imagine pătrată */
@media (max-width: 480px){
  .services-container .service-card .card-image-container{
    aspect-ratio: 1 / 1 !important;
  }
}

/* neutralizează reguli vechi care setau înălțimi fixe */
.services-container .service-card img{
  height: auto !important;
  max-height: none !important;
}
/* CONTAINER BUTOANE */
.messaging-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

/* BUTOANE GENERALE */
.msg-btn {
  padding: 12px 8px;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
}

/* CULORI SPECIFICE - CORECTATE */
.telegram-btn {
  background-color: #0088cc !important;
}
.telegram-btn:hover {
  background-color: #0077b3 !important;
}

.viber-btn {
  background-color: #7360f2 !important;
}
.viber-btn:hover {
  background-color: #6554e0 !important;
}

.whatsapp-btn {
  background-color: #25d366 !important;
}
.whatsapp-btn:hover {
  background-color: #20bd5c !important;
}

.email-btn {
  background-color: #ffc107 !important;
  color: #333 !important;
}
.email-btn:hover {
  background-color: #e6ac00 !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .messaging-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .msg-btn {
    font-size: 13px;
    padding: 10px 6px;
  }
}

@media (max-width: 480px) {
  .messaging-buttons {
    grid-template-columns: 1fr;
  }
}