/* Atelier Baumann — Frontend Styles (Figma-Match) */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Site Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  padding: 0 clamp(24px, 5vw, 80px) !important;
  min-height: 60px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

/* Center site title */
.site-header .wp-block-site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  white-space: nowrap;
  margin: 0 !important;
}
.site-header .wp-block-site-title a {
  color: #000 !important;
  text-decoration: none;
}

/* Hamburger menu (left) */
.header-hamburger {
  z-index: 10;
}
.header-hamburger .wp-block-navigation__responsive-container-open {
  padding: 0;
}
.header-hamburger .wp-block-navigation__responsive-container-open svg {
  width: 24px;
  height: 24px;
}

/* Language switch (right) */
.header-lang {
  z-index: 10;
  margin: 0 !important;
  cursor: pointer;
}

/* Navigation overlay styling */
.wp-block-navigation__responsive-container.is-menu-open {
  padding: clamp(24px, 5vw, 80px) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  font-weight: 300 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  line-height: 1.3 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 8px !important;
}

/* Admin bar offset */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---- Hero Section ---- */
.ab-hero {
  background: #ffffff !important;
  padding: 0 !important;
}

.ab-hero__image-wrap {
  background: #f0f0f0;
  margin: 0 !important;
  padding: 0 !important;
}

.ab-hero__img {
  margin: 0 !important;
}
.ab-hero__img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.ab-hero__caption {
  padding: 40px clamp(24px, 5vw, 80px) 60px !important;
  text-align: center;
}
.ab-hero__caption .wp-block-heading {
  margin-bottom: 8px !important;
}

/* ---- Atelier section ---- */
.ab-atelier {
  background: #fff;
}

/* Portrait */
.ab-portrait img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* Blockquote */
.ab-blockquote {
  border-left: 3px solid #000 !important;
  padding-left: 28px !important;
  margin-top: 40px !important;
  margin-bottom: 40px !important;
  font-style: normal !important;
}
.ab-blockquote p {
  font-size: 1.2rem !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: #000 !important;
}
.ab-blockquote cite {
  display: none;
}

/* ---- Projects section ---- */
.ab-projects {
  background: #f5f5f5 !important;
}

/* Project cards */
.ab-proj-card {
  overflow: hidden;
  cursor: pointer;
}
.ab-proj-card .wp-block-post-featured-image {
  overflow: hidden;
}
.ab-proj-card .wp-block-post-featured-image img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab-proj-card:hover .wp-block-post-featured-image img {
  transform: scale(1.05);
}
.ab-proj-card__caption {
  position: absolute !important;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%) !important;
  padding: 48px 20px 20px !important;
}
.ab-proj-card__caption .wp-block-post-title {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #fff !important;
  line-height: 1.3 !important;
}
.ab-proj-card__caption .wp-block-post-title a {
  color: #fff !important;
}

/* ---- Contact section ---- */
.ab-contact {
  background: #1a1a1a !important;
  color: #ffffff !important;
}

.ab-contact h2 {
  color: #ffffff !important;
}

.ab-contact-email {
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.1rem !important;
  transition: opacity 0.2s;
}
.ab-contact-email:hover {
  opacity: 0.7;
}

.ab-contact-item p {
  margin-top: 0 !important;
}

/* ---- Project single ---- */
.project-single { padding-top: 64px !important; }
.project-hero img { width: 100%; max-height: 80vh; object-fit: cover; }
.project-meta-bar { padding: 32px clamp(24px, 5vw, 80px) !important; }
.project-meta-bar .wp-block-post-title {
  font-size: clamp(2rem, 5vw, 4rem) !important;
  font-weight: 300 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
}

/* Gallery */
.project-single .wp-block-gallery { margin: 0 !important; }
.project-single .wp-block-image img { width: 100%; }

/* ---- Site footer ---- */
.site-footer {
  background: #000 !important;
  color: #fff !important;
  padding: 32px clamp(24px, 5vw, 80px) !important;
}
.site-footer p {
  color: #666 !important;
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

/* ---- Section padding fix ---- */
.ab-atelier,
.ab-projects,
.ab-contact {
  padding-left: clamp(24px, 5vw, 80px) !important;
  padding-right: clamp(24px, 5vw, 80px) !important;
}

/* Contact section force dark bg + white text */
.ab-contact,
.ab-contact.wp-block-group {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}
.ab-contact p,
.ab-contact .wp-block-heading {
  color: #ffffff !important;
}
.ab-contact .ab-contact-item p:first-child {
  color: #666666 !important;
}
.ab-contact .has-text-color[style*="#999999"] {
  color: #999999 !important;
}

/* ---- Utilities ---- */
.wp-site-blocks { padding: 0 !important; }
.is-root-container { padding: 0 !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .site-header {
    min-height: 52px;
  }
  .site-header .wp-block-site-title {
    font-size: 16px !important;
  }

  .ab-hero__caption {
    padding: 24px 24px 40px !important;
  }

  .ab-atelier .wp-block-columns {
    flex-direction: column !important;
  }
  .ab-atelier .wp-block-column {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  .ab-contact .wp-block-columns {
    flex-direction: column !important;
  }
  .ab-contact .wp-block-column {
    width: 100% !important;
    flex-basis: 100% !important;
  }
  .ab-contact .wp-block-column:last-child {
    margin-top: 40px;
  }
}
