/* =========================================================
   HOME PAGE
   ========================================================= */

.page-home .home-companies .card__media {
  height: auto;
  min-height: 0;
  max-height: none;
}
.page-home .home-companies .card__logo {
  height: 4.5rem;
  max-height: 4.5rem;
  max-width: 200px;
  object-fit: contain;
}

.page-home .home-about__image {
  height: 24rem;
  object-fit: cover;
  width: 100%;
  border-radius: 0.75rem;
}

.page-home .home-values .value-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(244, 240, 232, 0.12);
  background: rgba(7, 31, 25, 0.35);
  backdrop-filter: blur(8px);
  padding: 2rem 1.5rem;
}
.page-home .home-values .value-box__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: #f4f0e8;
}
.page-home .home-values .value-box__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(244, 240, 232, 0.75);
}

/* ---------- Slideshow wrapper ---------- */
.page-home .hm-slider { margin-top: 3rem; }

/* ---------- About: key points ---------- */
.page-home .hm-points { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.page-home .hm-points li { padding-left: 1.1rem; border-left: 2px solid #c4a35a; }
.page-home .hm-points b { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.2rem; color: #0c3328; }
.page-home .hm-points span { font-size: .9rem; color: #3d4f46; line-height: 1.6; }

/* ---------- Stats ---------- */
.page-home .hm-stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .page-home .hm-stats { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; } }

/* ---------- Sectors ---------- */
.page-home .hm-sectors { margin-top: 3rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .page-home .hm-sectors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .page-home .hm-sectors { grid-template-columns: repeat(3, 1fr); } }
.page-home .hm-sector { position: relative; display: flex; flex-direction: column; padding: 2rem 1.6rem 1.7rem; border-radius: 16px; border: 1px solid #e6dfd0; background: #faf7f1; overflow: hidden; transition: transform .4s ease, box-shadow .4s, border-color .3s; }
.page-home .hm-sector::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #c4a35a, #f0dca0); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.page-home .hm-sector:hover { transform: translateY(-6px); border-color: rgba(196,163,90,.7); box-shadow: 0 22px 40px -22px rgba(12,51,40,.45); }
.page-home .hm-sector:hover::before { transform: scaleX(1); }
.page-home .hm-sector__n { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.6rem; line-height: 1; color: rgba(196,163,90,.55); }
.page-home .hm-sector h3 { margin: 1rem 0 .2rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; color: #0c3328; }
.page-home .hm-sector small { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #b08d3f; }
.page-home .hm-sector p { margin: .9rem 0 1.2rem; flex: 1; font-size: .9rem; line-height: 1.65; color: #3d4f46; }
.page-home .hm-sector em { font-style: normal; font-size: .85rem; font-weight: 600; color: #0c3328; }

/* ---------- Offices ---------- */
.page-home .hm-presence { background-image: url("/assets/images/world-dots.svg"); background-repeat: no-repeat; background-position: right center; background-size: min(60rem, 90%); }
.page-home .hm-offices { margin-top: 3rem; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .page-home .hm-offices { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .page-home .hm-offices { grid-template-columns: repeat(6, 1fr); } }
.page-home .hm-office { display: flex; flex-direction: column; gap: .15rem; padding: 1.2rem 1.1rem; border-radius: 14px; border: 1px solid #e6dfd0; background: rgba(255,255,255,.85); transition: transform .35s, border-color .3s, box-shadow .35s; }
.page-home .hm-office:hover { transform: translateY(-4px); border-color: #c4a35a; box-shadow: 0 16px 30px -18px rgba(12,51,40,.5); }
.page-home .hm-office b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.3rem; color: #0c3328; }
.page-home .hm-office span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #b08d3f; }

/* ---------- Dark theme ---------- */
[data-theme="dark"] .page-home .hm-points b,
[data-theme="dark"] .page-home .hm-sector h3,
[data-theme="dark"] .page-home .hm-sector em,
[data-theme="dark"] .page-home .hm-office b { color: #f4f0e8; }
[data-theme="dark"] .page-home .hm-points span,
[data-theme="dark"] .page-home .hm-sector p { color: rgba(244,240,232,.72); }
[data-theme="dark"] .page-home .hm-sector,
[data-theme="dark"] .page-home .hm-office { background: #14291f; border-color: rgba(196,163,90,.22); }
[data-theme="dark"] .page-home .hm-presence { background-blend-mode: soft-light; }
