/* Estate Invest — v2 design system
   Loaded WITHOUT style.css on rebuilt pages.
   Only plugins.css (Bootstrap + icon fonts) precedes this. */

@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap");

:root {
  --ei-paper:   #fbf9f5;
  --ei-paper-2: #f3efe7;
  --ei-mist:    #e4e0d6;
  --ei-dust:    #6b6057;
  --ei-ink:     #231f1b;
  --ei-ink-2:   #453e37;
  --ei-brand:   #b19777;
  --ei-brand-d: #8e7657;
  --ei-brand-s: #d4c3a5;
  --ei-font:    "Figtree", system-ui, -apple-system, sans-serif;
  --ei-ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset ---- */

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

body {
  font-family: var(--ei-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ei-ink);
  background: var(--ei-paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- Breadcrumb ---- */

.v2-breadcrumb {
  padding: 0;
  margin: 0 0 0.5rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-family: var(--ei-font);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ei-dust);
}

.v2-breadcrumb li::after {
  content: "›";
  margin-left: 0.4rem;
  color: var(--ei-mist);
}

.v2-breadcrumb li:last-child::after { display: none; }
.v2-breadcrumb li:last-child { color: var(--ei-ink-2); }

.v2-breadcrumb a {
  color: var(--ei-dust);
  text-decoration: none;
  transition: color 0.2s;
}

.v2-breadcrumb a:hover { color: var(--ei-brand-d); }

/* ---- Apartment grouping ---- */

.v2-section-label {
  font-family: var(--ei-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ei-brand-d);
  margin: clamp(2rem, 4vw, 3rem) 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ei-mist);
}

.v2-section-label:first-child { margin-top: 0; }

.v2-sold-group { opacity: 0.5; transition: opacity 0.3s; }
.v2-sold-group:hover { opacity: 0.75; }

/* ---- Gallery grid ---- */

.v2-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.v2-gallery__item {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: block;
  background: var(--ei-paper-2);
}

.v2-gallery__item--wide { grid-column: span 3; }
.v2-gallery__item:not(.v2-gallery__item--wide) { grid-column: span 2; }

.v2-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ei-ease);
}

.v2-gallery__item:hover img { transform: scale(1.04); }

@media (max-width: 640px) {
  .v2-gallery { grid-template-columns: 1fr 1fr; }
  .v2-gallery__item--wide { grid-column: span 2; }
  .v2-gallery__item:not(.v2-gallery__item--wide) { grid-column: span 1; }
}

/* ---- Availability badge ---- */

.v2-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-family: var(--ei-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  vertical-align: middle;
}

.v2-badge--available {
  background: var(--ei-brand);
  color: var(--ei-paper);
}

.v2-badge--sold {
  background: var(--ei-mist);
  color: var(--ei-dust);
}

.v2-page-title .v2-badge {
  margin-left: 0.75rem;
  font-size: 0.62rem;
  vertical-align: middle;
  position: relative;
  top: -0.15em;
}

.v2-card__body .v2-badge {
  margin-top: 0.5rem;
}

/* ---- Lightbox ---- */

.v2-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(20, 17, 14, 0.92);
  cursor: zoom-out;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.v2-lightbox.is-open { display: flex; align-items: center; justify-content: center; }

.v2-lightbox__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ei-font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.v2-lightbox.is-loaded .v2-lightbox__spinner { display: none; }

.v2-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
}

.v2-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  z-index: 1;
}

.v2-lightbox__close:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); }

.v2-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}

.v2-lightbox__nav:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); }
.v2-lightbox__nav--prev { left: 1rem; }
.v2-lightbox__nav--next { right: 1rem; }
.v2-lightbox__nav[hidden] { display: none; }

.v2-lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ei-font);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.1em;
  background: rgba(20, 17, 14, 0.6);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

/* ---- Skip link ---- */

.v2-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  font-family: var(--ei-font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ei-ink);
  background: var(--ei-paper);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border: 2px solid var(--ei-brand);
}

.v2-skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ---- Container ---- */

.v2-container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ---- Navbar ---- */

.v2-nav {
  background: var(--ei-paper);
  border-bottom: 1px solid var(--ei-mist);
  padding-block: 1rem;
  transition: box-shadow 0.3s var(--ei-ease);
}

.v2-nav.nav-scroll {
  box-shadow: 0 4px 24px -12px rgba(35, 31, 27, 0.1);
}

.v2-nav .navbar-brand img { height: 28px; width: auto; }

.v2-nav .nav-link {
  font-family: var(--ei-font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ei-ink-2);
  padding: 0.4rem 0.9rem;
  transition: color 0.25s var(--ei-ease);
}

.v2-nav .nav-link:hover,
.v2-nav .nav-link.active { color: var(--ei-brand-d); }

.v2-nav .dropdown-menu {
  background: var(--ei-paper);
  border: 1px solid var(--ei-mist);
  border-radius: 3px;
  padding: 0.4rem 0;
  box-shadow: 0 16px 48px -20px rgba(35, 31, 27, 0.18);
  min-width: 14rem;
}

.v2-nav .dropdown-item {
  font-family: var(--ei-font);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ei-ink-2);
  padding: 0.55rem 1.25rem;
  transition: background 0.2s, color 0.2s;
}

.v2-nav .dropdown-item:hover {
  background: var(--ei-paper-2);
  color: var(--ei-brand-d);
}

.v2-nav .navbar-toggler { border: 1px solid var(--ei-mist); padding: 0.35rem 0.65rem; }
.v2-nav .navbar-toggler-icon { width: 1.1em; height: 1.1em; }

.v2-nav .nav-link .ti-angle-down { font-size: 0.55em; margin-left: 0.2em; }

.v2-nav .dropdown:hover > .dropdown-menu,
.v2-nav .dropdown:focus-within > .dropdown-menu {
  display: block;
}

@media (max-width: 991.98px) {
  .v2-nav .dropdown:hover > .dropdown-menu { display: none; }
  .v2-nav .dropdown.show > .dropdown-menu { display: block; }
}

/* ---- Page header ---- */

.v2-page-header {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(0.75rem, 1.5vw, 1.25rem);
}

.v2-page-title {
  font-family: var(--ei-font);
  font-weight: 800;
  font-size: clamp(2.8rem, 2rem + 4vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ei-ink);
}

.v2-page-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ei-brand-d);
}

/* ---- Project grid ---- */

.v2-projects { padding-bottom: clamp(4rem, 8vw, 7rem); }

.v2-project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 640px) {
  .v2-project-grid { grid-template-columns: 1fr; }
}

/* ---- Project card ---- */

.v2-card {
  display: block;
  text-decoration: none;
  color: var(--ei-ink);
  transition: transform 0.5s var(--ei-ease);
}

.v2-card:hover { transform: translateY(-3px); }

.v2-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ei-paper-2);
}

.v2-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ei-ease);
}

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

.v2-card__body { padding: 1.25rem 0 0; }

.v2-card__label {
  display: block;
  font-family: var(--ei-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ei-brand-d);
  margin-bottom: 0.45rem;
}

.v2-card__title {
  font-family: var(--ei-font);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ei-ink);
  margin-bottom: 0.65rem;
}

.v2-card__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ei-ink-2);
  max-width: 42ch;
  margin-bottom: 1rem;
}

.v2-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ei-brand-d);
  border-bottom: 1px solid var(--ei-brand);
  padding-bottom: 0.3rem;
  transition: gap 0.4s var(--ei-ease), color 0.3s var(--ei-ease);
}

.v2-card:hover .v2-card__link { gap: 0.85rem; color: var(--ei-ink); }

.v2-card__link i { font-size: 0.85em; }

/* ---- Footer ---- */

.v2-footer {
  background: var(--ei-ink);
  color: var(--ei-paper);
  padding: clamp(3.5rem, 6vw, 5rem) 0 0;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.v2-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.v2-footer__label {
  font-family: var(--ei-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ei-brand);
  margin-bottom: 0.6rem;
}

.v2-footer__value {
  font-family: var(--ei-font);
  font-weight: 400;
  font-size: 1.05rem;
  color: rgba(251, 249, 245, 0.9);
  line-height: 1.4;
}

.v2-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2.5rem, 4vw, 4rem);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(177, 151, 119, 0.15);
}

.v2-footer__bottom p {
  font-size: 0.78rem;
  color: rgba(251, 249, 245, 0.45);
  margin: 0;
}

.v2-footer__social {
  display: flex;
  gap: 0.5rem;
}

.v2-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(177, 151, 119, 0.3);
  border-radius: 50%;
  color: var(--ei-brand);
  transition: background 0.25s var(--ei-ease), color 0.25s var(--ei-ease), border-color 0.25s var(--ei-ease);
}

.v2-footer__social a:hover {
  background: var(--ei-brand);
  color: var(--ei-ink);
  border-color: var(--ei-brand);
}

/* ---- Contact page ---- */

.v2-contact { padding-bottom: clamp(3rem, 6vw, 5rem); }

.v2-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 768px) {
  .v2-contact__grid { grid-template-columns: 1fr; }
}

.v2-contact__info h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.v2-contact__info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ei-ink-2);
  margin: 0 0 0.5rem;
}

.v2-contact__info p strong { color: var(--ei-ink); font-weight: 600; }

.v2-contact__info .v2-contact__detail {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ei-mist);
}

.v2-contact__detail dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ei-brand-d);
  margin: 0 0 0.3rem;
}

.v2-contact__detail dd {
  font-size: 1rem;
  color: var(--ei-ink);
  margin: 0 0 1.25rem;
}

.v2-contact__detail dd a {
  color: var(--ei-ink);
  text-decoration: underline;
  text-decoration-color: var(--ei-mist);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s;
}

.v2-contact__detail dd a:hover { text-decoration-color: var(--ei-brand); }

/* Form */

.v2-form__msg {
  display: none;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid var(--ei-mist);
  background: var(--ei-paper-2);
  color: var(--ei-ink);
}

.v2-form__msg--success { border-color: var(--ei-brand); }
.v2-form__msg--error { border-color: #c25858; background: #fdf3f3; color: #7a2a2a; }

.v2-form label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ei-dust);
  margin-bottom: 0.35rem;
}

.v2-form input[type="text"],
.v2-form input[type="email"],
.v2-form input[type="tel"],
.v2-form textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ei-mist);
  font-family: var(--ei-font);
  font-size: 1rem;
  color: var(--ei-ink);
  transition: border-color 0.25s;
  margin-bottom: 1.25rem;
}

.v2-form input::placeholder,
.v2-form textarea::placeholder { color: var(--ei-dust); opacity: 0.6; }

.v2-form input:focus,
.v2-form textarea:focus { outline: none; border-bottom-color: var(--ei-brand); }

.v2-form textarea { resize: vertical; min-height: 6rem; }

.v2-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

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

.v2-form__submit {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--ei-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ei-brand-d);
  background: transparent;
  border: 1px solid var(--ei-brand);
  cursor: pointer;
  transition: background 0.3s var(--ei-ease), color 0.3s var(--ei-ease);
}

.v2-form__submit:hover { background: var(--ei-brand); color: var(--ei-paper); }
.v2-form__submit:disabled { opacity: 0.5; cursor: wait; }

.v2-map {
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--ei-mist);
  line-height: 0;
}

.v2-map iframe { width: 100%; height: clamp(280px, 40vw, 450px); border: 0; }

/* ---- About page ---- */

.v2-about { padding-bottom: clamp(3rem, 6vw, 5rem); }

.v2-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 768px) {
  .v2-about__grid { grid-template-columns: 1fr; }
}

.v2-about__text p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ei-ink-2);
  margin: 0 0 1rem;
  max-width: 56ch;
}

.v2-about__text p strong { color: var(--ei-ink); font-weight: 600; }

.v2-about__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.v2-about__image img { width: 100%; height: 100%; object-fit: cover; }

.v2-about__image-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.55rem 1rem;
  background: var(--ei-paper);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ei-ink);
}

/* Team */

.v2-team {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--ei-paper-2);
}

.v2-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.v2-team__card { text-align: left; }

.v2-team__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 1.15rem;
  background: var(--ei-mist);
  border: 1px solid var(--ei-mist);
}

.v2-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ei-ease);
}

.v2-team__card:hover .v2-team__photo img { transform: scale(1.04); }

.v2-team__name {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 0.3rem;
}

.v2-team__role {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ei-brand-d);
  margin-bottom: 0.75rem;
}

.v2-team__links { display: flex; gap: 0.4rem; }

.v2-team__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--ei-mist);
  color: var(--ei-ink-2);
  font-size: 0.85rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.v2-team__links a:hover {
  background: var(--ei-brand);
  color: var(--ei-paper);
  border-color: var(--ei-brand);
}

/* ---- Homepage nav (transparent over hero) ---- */

.v2-nav--home {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
}

.v2-nav--home .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.v2-nav--home .nav-link:hover,
.v2-nav--home .nav-link.active {
  color: #fff !important;
}

.v2-nav--home.nav-scroll {
  background: rgba(251, 249, 245, 0.97);
  border-bottom: 1px solid var(--ei-mist);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.v2-nav--home.nav-scroll .nav-link {
  color: var(--ei-ink-2) !important;
  text-shadow: none;
}

.v2-nav--home.nav-scroll .nav-link:hover,
.v2-nav--home.nav-scroll .nav-link.active {
  color: var(--ei-brand-d) !important;
}

.v2-nav--home .v2-nav__logo-dark { display: none; }
.v2-nav--home.nav-scroll .v2-nav__logo-light { display: none; }
.v2-nav--home.nav-scroll .v2-nav__logo-dark { display: block; }

.v2-nav--home .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.v2-nav--home .navbar-toggler-icon { filter: invert(1); }
.v2-nav--home.nav-scroll .navbar-toggler { border-color: var(--ei-mist); }
.v2-nav--home.nav-scroll .navbar-toggler-icon { filter: none; }

@media (max-width: 991.98px) {
  .v2-nav--home .navbar-collapse.show,
  .v2-nav--home .navbar-collapse.collapsing {
    background: rgba(35, 31, 27, 0.95);
    padding: 1rem;
    margin-top: 0.5rem;
  }
}

/* ---- Hero ---- */

.v2-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ei-ink);
}

.v2-hero__img {
  position: absolute;
  inset: 0;
}

.v2-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.v2-hero__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 78% at -5% 108%, rgba(10,8,6,0.88) 0%, rgba(10,8,6,0.45) 35%, rgba(10,8,6,0) 75%),
    radial-gradient(ellipse 85% 45% at 0% 0%, rgba(12,10,8,0.65) 0%, rgba(12,10,8,0) 70%),
    linear-gradient(180deg, rgba(15,12,10,0.6) 0%, rgba(15,12,10,0.15) 30%, rgba(15,12,10,0.5) 70%, rgba(15,12,10,0.9) 100%);
  pointer-events: none;
}

.v2-hero__body {
  position: relative;
  z-index: 1;
  padding: 0 clamp(1.5rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
  max-width: min(52rem, 90vw);
}

.v2-hero__title {
  font-family: var(--ei-font);
  font-weight: 800;
  font-size: clamp(3rem, 2rem + 5.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 8px 40px rgba(0,0,0,0.4);
}

.v2-hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ei-brand-s);
}

.v2-hero__lead {
  font-family: var(--ei-font);
  font-weight: 500;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 44ch;
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 3px 20px rgba(0,0,0,0.4);
}

.v2-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2rem;
  font-family: var(--ei-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ei-paper);
  background: transparent;
  border: 1px solid var(--ei-brand);
  text-decoration: none;
  text-shadow: none;
  transition: background 0.35s var(--ei-ease), color 0.35s var(--ei-ease), gap 0.35s var(--ei-ease);
}

.v2-hero__cta:hover {
  background: var(--ei-brand);
  color: var(--ei-ink);
  gap: 1rem;
}

/* ---- Homepage about section ---- */

.v2-home-about {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.v2-home-projects {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--ei-paper-2);
}

/* ---- Template compat (project pages that keep template markup) ---- */

.section-padding2 { padding: clamp(3rem, 6vw, 5rem) 0; }
.mb-15 { margin-bottom: 15px; }
.mb-30 { margin-bottom: 30px; }
.mb-90 { margin-bottom: 90px; }
.mt-15 { margin-top: 15px; }
.mt-30 { margin-top: 30px; }
.img-fluid { max-width: 100%; height: auto; }
.position-re { position: relative; }
.o-hidden { overflow: hidden; }
.text-center { text-align: center; }
.border-2 { border: none; border-top: 1px solid var(--ei-mist); margin: 1rem 0 1.25rem; opacity: 1; }

.section-title2 {
  font-family: var(--ei-font);
  font-weight: 800;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ei-ink);
  margin: clamp(1.5rem, 3vw, 2.5rem) 0 0.75rem;
}

.project-page h3 {
  font-family: var(--ei-font);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ei-ink-2);
  margin: 0 0 1.5rem;
  max-width: 52ch;
}

.project-page p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ei-ink-2);
  margin: 0 0 1rem;
  max-width: 62ch;
}

.project-page p strong { color: var(--ei-ink); font-weight: 600; }
.project-page p small { font-size: 0.85em; color: var(--ei-dust); }

.project-bar {
  background: var(--ei-paper-2);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  margin: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.project-bar h5 {
  font-family: var(--ei-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ei-brand-d);
  margin: 0 0 0.4rem;
}

.project-bar h6 {
  font-family: var(--ei-font);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ei-ink);
  margin: 0;
}

.page-list { list-style: none; padding: 0; margin: 1.5rem 0; }

.page-list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ei-mist);
}

.page-list li:last-child { border-bottom: none; }

.page-list-icon { flex: 0 0 auto; color: var(--ei-brand); }
.page-list-text p { margin: 0; color: var(--ei-ink-2); max-width: none; }

/* Apartment card */

.bauen-blog4 {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--ei-mist);
  align-items: start;
}

.bauen-blog4:first-of-type { border-top: none; }

.bauen-blog4.left { direction: rtl; }
.bauen-blog4.left > * { direction: ltr; }

@media (max-width: 768px) {
  .bauen-blog4 { grid-template-columns: 1fr; }
  .bauen-blog4.left { direction: ltr; }
  .bauen-blog4 .caption .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }
}

.bauen-blog4 [class*="app_"],
.bauen-blog4 [class*="app_"] figure {
  margin: 0;
}

.bauen-blog4 [class*="app_"] img {
  width: 100%;
  height: auto;
  display: block;
}

.bauen-blog4 .caption h6 {
  font-family: var(--ei-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ei-brand-d);
  margin: 0 0 0.4rem;
}

.bauen-blog4 .caption h4 {
  font-family: var(--ei-font);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--ei-ink);
  margin: 0 0 0.75rem;
}

.bauen-blog4 .caption ul { list-style: none; padding: 0; margin: 0; }

.bauen-blog4 .caption ul li {
  font-family: var(--ei-font);
  font-size: 0.9rem;
  color: var(--ei-ink-2);
  padding: 0.15rem 0;
}

.bauen-blog4 .caption ul.highlights li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.bauen-blog4 .caption ul.highlights li i {
  color: var(--ei-brand);
  font-size: 0.7rem;
}

/* Ribbon */

.ribbon { display: none; }

.ribbon-top-right {
  display: inline-block;
  position: static;
  float: right;
  margin: 0 0 0.5rem 1rem;
  z-index: 2;
}

.ribbon-top-right span {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--ei-ink);
  font-family: var(--ei-font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ei-brand-s);
}

@media (max-width: 768px) {
  .bauen-blog4 .caption { position: relative; }
  .ribbon-top-right {
    position: absolute;
    float: none;
    top: 0;
    right: 0.75rem;
    margin: 0;
    transform: translateY(calc(-100% - 2.25rem));
  }
}

/* Owl carousel overrides (gallery on project pages) */

.project-page .owl-carousel .portfolio-item img {
  width: 100%;
  max-height: 550px;
  display: block;
  object-fit: cover;
}

.project-page .owl-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-page .owl-nav button {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ei-mist) !important;
  background: var(--ei-paper) !important;
  color: var(--ei-ink-2);
  font-size: 0.9rem;
  transition: background 0.25s, border-color 0.25s;
}

.project-page .owl-nav button:hover {
  background: var(--ei-brand) !important;
  border-color: var(--ei-brand) !important;
  color: var(--ei-paper);
}

/* Map */

.map { width: 100%; height: clamp(280px, 40vw, 500px); border: 1px solid var(--ei-mist); }

/* CTA button */

.butn-dark { display: inline-block; }
.butn-dark a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--ei-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ei-brand-d);
  border: 1px solid var(--ei-brand);
  transition: background 0.3s var(--ei-ease), color 0.3s var(--ei-ease);
}

.butn-dark a span { display: inline; }
.butn-dark a:hover { background: var(--ei-brand); color: var(--ei-paper); }

/* Hero CTA (inline, below page title) */

.v2-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  padding: 0.75rem 1.5rem;
  font-family: var(--ei-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ei-brand-d);
  border: 1px solid var(--ei-brand);
  transition: background 0.3s var(--ei-ease), color 0.3s var(--ei-ease);
}

.v2-hero-cta:hover { background: var(--ei-brand); color: var(--ei-paper); }

.v2-hero-cta::after {
  content: "→";
  font-size: 0.95rem;
  letter-spacing: 0;
}

/* Floating CTA (appears after scroll, hides near bottom CTA) */

.v2-floating-cta {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--ei-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ei-paper);
  background: var(--ei-brand-d);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(35, 31, 27, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ei-ease), transform 0.3s var(--ei-ease), background 0.25s;
}

.v2-floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.v2-floating-cta:hover { background: var(--ei-ink); color: var(--ei-paper); }

.v2-floating-cta::before {
  content: "✉";
  font-size: 1rem;
  letter-spacing: 0;
}

@media (max-width: 520px) {
  .v2-floating-cta {
    width: 52px;
    height: 52px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  .v2-floating-cta__label { display: none; }
  .v2-floating-cta::before { font-size: 1.25rem; }
}

/* Prev/Next */

.projects-prev-next {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--ei-mist);
}

.projects-prev-next a {
  font-family: var(--ei-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ei-brand-d);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s;
}

.section-title {
  font-family: var(--ei-font);
  font-weight: 800;
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ei-ink);
  margin: 0 0 2rem;
}

.section-title span {
  font-weight: 500;
  font-style: italic;
  color: var(--ei-brand-d);
}

.projects-prev-next a:hover { color: var(--ei-ink); }

.projects-prev-next-left,
.projects-prev-next-right { flex: 1; display: flex; }
.projects-prev-next-left { justify-content: flex-start; }
.projects-prev-next-right { justify-content: flex-end; }

/* Services / Infofiche */

.services .row .row > [class*="col-"] { display: flex; }

.services .item {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--ei-mist);
  background: var(--ei-paper);
  margin-bottom: 1.5rem;
  width: 100%;
}

.services .item img { width: 28px; height: 28px; object-fit: contain; margin-bottom: 0.75rem; }

.services .item h5 {
  font-family: var(--ei-font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ei-brand-d);
  margin: 0 0 0.4rem;
}

.services .item .line { width: 1.5rem; height: 1px; background: var(--ei-brand); margin: 0.4rem 0 0.75rem; }

.services .item h6 {
  font-family: var(--ei-font);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ei-ink);
  margin: 0 0 0.6rem;
}

.services .item p { font-size: 0.88rem; color: var(--ei-ink-2); margin: 0 0 0.2rem; }
.services .item p b { font-weight: 600; color: var(--ei-ink); }

.services .item .numb {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--ei-font);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--ei-brand);
  opacity: 0.5;
}

/* Accordion (technical info) */

.accordion-box { list-style: none; padding: 0; }

.accordion { border-bottom: 1px solid var(--ei-mist); }

.acc-btn {
  display: block;
  width: 100%;
  padding: 1.1rem 0;
  font-family: var(--ei-font);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ei-ink);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}

.acc-btn .count { color: var(--ei-brand); margin-right: 0.6rem; }

.acc-content { display: none; padding: 0 0 1.25rem; }
.acc-content.current { display: block; }
.acc-content p { font-size: 0.92rem; color: var(--ei-ink-2); line-height: 1.65; max-width: 62ch; }
.acc-content p strong { color: var(--ei-ink); font-weight: 600; }

/* Partners */
.partners { padding: clamp(2rem, 4vw, 3rem) 0; }

/* Animate-box: just show immediately */
.animate-box { opacity: 1; }

/* ---- Focus ---- */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ei-brand);
  outline-offset: 3px;
}
