/* ========== Abiromconstruct Shared Styles ========== */
:root {
  --beige: #f6efe6;
  --nav-bg: rgba(255, 255, 255, 0.98);
  --primary: #1d3557;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --hero-h-desktop: 18vh;
  --hero-min-desktop: 160px;
  --hero-min-mobile: 180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--beige);
}

/* Fixed overlay nav (top-right) */
header {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 1000;
}
header nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--nav-bg);
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
header nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 9999px;
}
header nav a:hover { background: #f1f5f9; }
header nav a.active { background: #e2e8f0; }

/* White content card framed by beige page background */
.container {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

h1, h2, h3 { color: var(--primary); margin-bottom: 14px; }
p { margin-bottom: 12px; }

/* Hero slider styled inside the white container */
.hero {
  position: relative;
  min-height: var(--hero-min-mobile);
  overflow: hidden;
  border-radius: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero img.active { opacity: 1; }

.hero .hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero .hero-text h1 {
  font-size: clamp(1rem, 2.8vw, 1.8rem);
  white-space: normal;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
}
.slider-btn:hover { background: rgba(0,0,0,0.7); }
.prev { left: 16px; }
.next { right: 16px; }

.section { margin-top: 28px; }

.container > .section:first-child { margin-top: 0; }

/* About card */
.about-card {
  background: #f6f9fc;
  border-left: 6px solid var(--primary);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.about-card p { margin-bottom: 12px; }
.about-card p:last-child { margin-bottom: 0; }

/* Services list + items */
.service-item {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.service-item:nth-child(even) { flex-direction: row-reverse; }
.service-item img {
  width: 175px;
  height: 175px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.service-text {
  flex: 1;
  min-width: 260px;
}
.service-text h3 { color: var(--primary); margin-bottom: 10px; }

.services-bullets { margin: 10px 0 10px 1.25rem; }
.services-bullets li { margin: 6px 0; }

/* Footer sits on beige background, outside white container */
footer {
  color: var(--primary);
  text-align: center;
  padding: 18px 12px 28px;
  font-size: 0.95rem;
}

/* Desktop/tablet: reduce hero height (nu lățimea) */
@media (min-width: 768px) {
  .hero {
    width: 100%;
    margin: 0 auto;
    height: var(--hero-h-desktop);
    min-height: var(--hero-min-desktop);
  }
  .hero .hero-text h1 {
    white-space: normal; /* permite împachetarea textului pe 2-3 rânduri dacă e nevoie */
    line-height: 1.2;
  }
}

/* Small screens */
@media (max-width: 640px) {
  .container { margin: 0 10px 28px; padding: 16px; }
  .service-item img {
    width: 100%;
    height: 220px;
  }
  .hero { min-height: var(--hero-min-mobile); margin: 0 10px; padding: 0; }
}
