:root {
  --text-main: #0f172a;
  --text-muted: #334155;
  --brand-red: #d91b36;   /* Roșul din IT */
  --brand-blue: #4a2195;  /* Albastrul din SMART */
  --card-bg: rgba(255, 255, 255, 0.9); 
}

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

body {
  font-family: 'Inter', sans-serif;
  background-image: linear-gradient(to top, #c1dfc4 0%, #deecdd 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* CONTAINER PRINCIPAL */
.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px 0 24px;
}

/* ZONA DE HEADER CU LOGO */
header {
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; 
  position: relative;
}

/* COMUTATOR LIMBI (RO / DE) */
.lang-switcher {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  gap: 16px;
  animation: fadeIn 0.3s ease-in-out;
}

.lang-btn {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.3; 
  transition: opacity 0.2s ease, font-weight 0.2s ease;
  padding: 4px 6px;
  user-select: none;
}

.lang-btn:hover {
  opacity: 0.7;
}

.lang-btn.active {
  opacity: 1 !important;
  font-weight: 700;
}

.img-logo {
  display: block;
  margin: 0 auto 15px auto;
  height: auto;
}

header h1 {
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  width: max-content; 
  max-width: 100%;
}

header .subtitle {
  font-size: 0.9rem;
  color: var(--brand-blue);
  margin-top: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* STRUCTURA GRID SERVICII */
.grid {
  display: grid;
}

details {
  background-color: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

details[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

summary {
  padding: 14px 18px;
  font-size: 0.95rem; /* Dimensiunea de bază a titlurilor din oferte */
  font-weight: 700;
  color: var(--brand-blue);
  cursor: pointer;
  list-style: none;
  position: relative;
  border-left: 4px solid var(--brand-red);
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--brand-red);
  font-weight: bold;
}

details[open] summary::after {
  content: "−";
}

summary:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.content {
  padding: 0 18px 18px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.02);
  background-color: rgba(255, 255, 255, 0.3);
}

.section-subtitle {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--brand-blue);
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 4px;
}

.content ul {
  list-style: none;
  margin-top: 10px;
}

.content li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.content li:last-child {
  margin-bottom: 0;
}

.content li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-red);
  font-size: 1rem;
}

.content li strong {
  color: var(--text-main);
}

/* REPARAȚIE IERARHIE VIZUALĂ: CASETA DE CONTACT OPTIMIZATĂ PROPORȚIONAL */
.contact-card {
  background-color: #0f172a; 
  color: #ffffff;
  border-radius: 6px;
  padding: 14px 20px; /* Padding interior ușor redus pentru un aspect mai fin */
  width: max-content; 
  max-width: 100%; 
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-card h2 {
  font-size: 0.95rem; /* REPARAȚIE: Identic cu dimensiunea summary pentru armonie deplină */
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem; /* Extrem de discret și elegant sub titlu */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.contact-link:hover {
  opacity: 0.8;
}

.contact-link .icon {
  color: #ffffff; 
  font-size: 0.9rem;
}

.divider-line {
  width: 480px;
  max-width: 90%;
  height: 1px;
  background-color: var(--text-muted);
  margin: 0 auto;
  opacity: 0.7;
}

/* FOOTER */
footer {
  width: 100%;
  text-align: center;
  padding: 10px 24px 15px 24px; 
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* MEDIAS PENTRU DESKTOP (LANDSCAPE) */
@media only screen and (orientation: landscape) {
  .wrapper {
    padding-top: 100px; 
  }
  .img-logo { 
    width: 520px; 
    max-width: 100%; 
  }
  .grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
    margin-top: 35px !important; 
  }
  .bottom-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding: 20px 0;         
  }
  .contact-card {
    margin: auto auto !important; 
  }
  details[open] {
    grid-column: span 2; 
    margin-bottom: 10px; 
  }
}

/* MEDIAS PENTRU MOBIL (PORTRAIT) */
@media only screen and (orientation: portrait) {
  .wrapper { padding-top: 50px; }
  .lang-switcher { right: 50%; transform: translateX(50%); top: -35px; } 
  .img-logo { width: 65%; }
  .grid { grid-template-columns: 1fr; gap: 12px; margin-top: 25px; }
  .contact-card { margin: 40px auto 0 auto; } 
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
