/* Import Inter font including ExtraLight 200 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500;700&display=swap');

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

:root {
  --accent:#0b3d91;
  --muted:#666;
  --bg:#ffffff;
  --text:#111;
  --soft:#f7f7f7;
  --maxwidth:1100px;
}

body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.4;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #e9e9e9;
  background: var(--bg);
}

.logo img {
  height: 55px;
  display: block;
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: nowrap;
}

nav a {
  text-decoration: none;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;               
  transition: transform 0.2s ease; /* smooth hover effect */
}

nav a:hover {
  transform: scale(1.05);   /* slightly bigger on hover only */
  font-weight: 600;         /* optional, just for hover effect */
}

@media (max-width: 600px) {
  nav {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  nav a {
    font-size: 0.9rem;
  }
}


/* Hero Section */
.hero {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  bottom: 22px;
  left: 22px;
  color: white;
  background: rgba(0,0,0,0.45);
  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 0px;
}
.hero-5 img {
  max-width: 400px;
  margin-top: 40px;
  width: 100%;     /* responsive */
  height: auto;
  border-radius: 0px; /* optional, nice corners */
}

.hero-5 .hero-text {
  flex: 1;         /* text takes the remaining space */
}
/* Page Content */
.page {
  padding: 20px 0 40px 0;
  min-height: calc(100vh - 160px);
}

/* Phones & tablets */
@media (max-width: 768px) {
  .page {
    padding: 20px 15px 40px 15px; /* added horizontal padding */
  }
}

/* Headings: h2 and h3 ExtraLight 200 */
main h2,
main h3 {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 200; /* ExtraLight */
  margin: 18px 0;
}

main h2 { font-size: 1.1rem; }
main h3 { font-size: 1rem; }
main h4 {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 200; /* ExtraLight */
  font-size: 2rem
  margin: 18px 0;
  margin-bottom: 40px
}

.page p {
  margin: 0.8em 0;
  margin-bottom: 20px
}

/* Exhibition Grids */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* max 3 tiles per row */
  gap: 1px; /* thin white line between images */
  background: #fff; /* ensures the gap is visible */
}

.grid img {
  width: 100%;
  height: auto; /* keeps natural square shape */
  display: block;
  object-fit: cover;
  cursor: pointer;
  transition: filter 0.25s ease;
  background: #fff;
}

.grid img:hover {
  transform: scale(1.02);       /* slight zoom in */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* subtle depth */
}

/* === Lightbox === */
#lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

#lightbox.show {
  opacity: 1;
  visibility: visible;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

#lightbox button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  border: none;
  font-size: 2rem;
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  user-select: none;
}

#prev { left: 20px; }
#next { right: 20px; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* Contact Map */
.map-container {
  width: 100%;
  max-width: 600px;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 1em 0;
  margin-bottom: 40px
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 24px 0;
  background: var(--soft);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  #lightbox img { max-height: 88%; }
}

@media (max-width: 560px) {
  header { padding: 14px 20px; }
  .grid { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .hero-text { left: 12px; right: 12px; bottom: 14px; font-size: 0.95rem; }
  nav { gap: 8px; flex-wrap: wrap; }
}

/* === Adăugiri pentru sticky header și footer cu social === */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.footer-flex {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  text-align: left;
}

.footer-right {
  display: flex;
  gap: 15px;
}

.social-btn img {
  width: 28px;
  height: 28px;
  filter: grayscale(100%);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-btn:hover img {
  transform: scale(1.2);
  filter: grayscale(0%);
}
/* === Stiluri pentru Hero Slider === */
.hero {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

.hero-slide .hero-text {
  position: absolute;
  bottom: 22px;
  left: 22px;
  color: white;
  background: rgba(0,0,0,0.45);
  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 0px;
}