/* Homepage layout refinements, shared by the Portuguese and English versions. */
.hmatias-home main > section { content-visibility: visible; contain-intrinsic-size: none; }
.hmatias-home main > section[id] { scroll-margin-top: 12px; }
.hmatias-home .hero-grid { grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); min-height: 600px; }
.hmatias-home .hero-copy { padding: 74px 48px 64px 0; }
.hmatias-home .hero .eyebrow { margin-bottom: 22px; color: #cfe7f7; font-size: .76rem; font-weight: 800; letter-spacing: .16em; line-height: 1.45; }
body.hmatias-home .hero h1 { font-size: clamp(3rem, 1.65rem + 4vw, 4.5rem); line-height: .99; letter-spacing: -.055em; max-width: 10ch; font-weight: 780; text-wrap: balance; }
.hmatias-home .hero-copy > p { max-width: 42ch; margin-top: 22px; color: rgba(255,255,255,.88); font-size: 1.05rem; line-height: 1.62; }
.hmatias-home .hero-actions { margin-top: 30px; }
.hmatias-home .hero-visual { min-height: 600px; }
.hmatias-home .hero-values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 34px; }
.hmatias-home .hero-values div { font-size: .8125rem; }
.hmatias-home .hero-values strong { font-size: .875rem; }
.hmatias-home .section-heading.center p { margin: 14px auto 0; }
.hmatias-home :is(.service-grid, .why-us-grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hmatias-home :is(.hero-grid, .service-grid, .why-us-grid, .company-grid, .contact-grid, .footer-grid) > * { min-width: 0; }
.hmatias-home .service-card { display: flex; flex-direction: column; padding: 28px; }
.hmatias-home .service-card p { min-height: 0; margin-bottom: 20px; }
.hmatias-home .service-card a { margin-top: auto; align-self: flex-start; }
.hmatias-home :is(.service-card, .project-caption, .division-card) a { min-height: 44px; display: inline-flex; align-items: center; }
.hmatias-home .contact-grid { gap: 56px; }
.hmatias-home .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.hmatias-home .contact-form label { min-width: 0; }
.hmatias-home .contact-form .form-wide { grid-column: 1 / -1; }
.hmatias-home .contact-form :is(input, select, textarea) { min-width: 0; }
.hmatias-home .contact-form textarea { min-height: 144px; }
.hmatias-home :is(.btn, .menu-toggle, .lang-switch) { min-height: 44px; }
.hmatias-home .lang-switch { display: inline-flex; align-items: center; }
.hmatias-home .whatsapp-float { right: 18px; bottom: 18px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; }
.hmatias-home .whatsapp-float img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.hmatias-home .hmatias-assistant { right: 18px; bottom: 78px; }
.hmatias-home .hmatias-assistant-toggle { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; }
.hmatias-home .hmatias-assistant-toggle > span { display: none; }
.hmatias-home .hmatias-assistant-toggle svg { width: 23px; height: 23px; }
.hmatias-home .hmatias-assistant-close { width: 44px; height: 44px; }
.hmatias-home .hmatias-assistant-links a { min-height: 44px; display: inline-flex; align-items: center; }
.hmatias-home.contact-in-view .whatsapp-float,
.hmatias-home.contact-in-view .hmatias-assistant:not(.open) { visibility: hidden; }
.hmatias-home footer { padding-bottom: 82px; }

/* Stronger institutional presentation for About HMATIAS. */
.hmatias-home .company-impact { padding: 96px 0; background: linear-gradient(180deg,#fff 0%,#f7fbff 100%); }
.hmatias-home .company-impact-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(330px,.88fr); gap: 56px; align-items: stretch; }
.hmatias-home .company-overline { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.hmatias-home .company-overline .eyebrow { margin-bottom: 0; }
.hmatias-home .company-since { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #cfe2f2; border-radius: 999px; background: #fff; color: #174b78; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.hmatias-home .company-since::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0065cc; box-shadow: 0 0 0 4px rgba(0,101,204,.10); }
.hmatias-home .company-impact h2 { max-width: 760px; margin-bottom: 22px; }
.hmatias-home .company-impact .company-lead { max-width: 760px; color: #284761; font-size: 1.03rem; line-height: 1.75; }
.hmatias-home .company-impact .company-copy { max-width: 760px; line-height: 1.75; }
.hmatias-home .company-trust-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 28px; }
.hmatias-home .company-trust-card { padding: 17px 18px; border: 1px solid #d9e6f0; border-radius: 14px; background: rgba(255,255,255,.9); box-shadow: 0 8px 25px rgba(6,45,86,.045); }
.hmatias-home .company-trust-card small { display: block; margin-bottom: 5px; color: #71869a; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hmatias-home .company-trust-card strong { display: block; color: #062d56; font-size: .95rem; line-height: 1.35; }
.hmatias-home .company-identity-card { position: relative; min-height: 430px; overflow: hidden; display: flex; flex-direction: column; padding: 38px; border-radius: 24px; background: linear-gradient(145deg,#062d56 0%,#0a4d82 58%,#0a6cb0 100%); color: #fff; box-shadow: 0 22px 55px rgba(6,45,86,.16); }
.hmatias-home .company-identity-card::after { content: ""; position: absolute; width: 310px; height: 310px; right: -105px; bottom: -115px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.035); pointer-events: none; }
.hmatias-home .company-identity-kicker { position: relative; z-index: 1; color: #b8dbf1; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hmatias-home .company-founded-year { position: relative; z-index: 1; margin: 24px 0 6px; color: #65c4f5; font-size: clamp(4.6rem,8vw,6.8rem); font-weight: 800; line-height: .88; letter-spacing: -.065em; }
.hmatias-home .company-founded-date { position: relative; z-index: 1; display: block; max-width: 26ch; color: #fff; font-size: 1.12rem; line-height: 1.35; }
.hmatias-home .company-identity-card > p { position: relative; z-index: 1; max-width: 36ch; margin: 16px 0 0; color: #d7e8f4; font-size: .84rem; line-height: 1.65; }
.hmatias-home .company-identity-meta { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 28px; }
.hmatias-home .company-identity-meta span { display: grid; gap: 4px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.18); color: #cbe1ef; font-size: .74rem; line-height: 1.45; }
.hmatias-home .company-identity-meta b { color: #fff; font-size: .8rem; }

/* Final visual consistency pass: restrained B2B iconography, type and spacing. */
.hmatias-home :is(.services,.projects,.sectors,.home-divisions,.company-impact,.contact) .eyebrow,
.hmatias-home .supply > .container > div > .eyebrow {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.45;
}
.hmatias-home .section-heading h2,
.hmatias-home :is(.supply,.company-impact,.contact) h2 {
  font-weight: 760;
  letter-spacing: -.035em;
}
.hmatias-home .section-heading p {
  font-size: .94rem;
  line-height: 1.7;
}
.hmatias-home .services { padding-top: 88px; padding-bottom: 88px; }
.hmatias-home .service-card {
  border-radius: 16px;
  border-color: #d9e5ef;
  box-shadow: 0 12px 34px rgba(6,45,86,.065);
}
.hmatias-home .service-card:hover {
  transform: translateY(-4px);
  border-color: #aacfe9;
  box-shadow: 0 18px 42px rgba(6,45,86,.09);
}
.hmatias-home .service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border: 1px solid #d7e7f4;
  border-radius: 13px;
  background-color: #f1f7fc;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 25px 25px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
  font-size: 0;
}
.hmatias-home .service-card:nth-child(1) .service-icon { background-image: url('images/icon-service-construction.svg'); }
.hmatias-home .service-card:nth-child(2) .service-icon { background-image: url('images/icon-service-remodel.svg'); }
.hmatias-home .service-card:nth-child(3) .service-icon { background-image: url('images/icon-service-facilities.svg'); }
.hmatias-home .service-card:nth-child(4) .service-icon { background-image: url('images/icon-service-supply.svg'); }
.hmatias-home .service-card:nth-child(5) .service-icon { background-image: url('images/icon-service-procurement.svg'); }
.hmatias-home .service-card:nth-child(6) .service-icon { background-image: url('images/icon-service-projects.svg'); }
.hmatias-home .service-card h3 {
  margin-bottom: 10px;
  color: #0b3358;
  font-size: 1.08rem;
  font-weight: 730;
  letter-spacing: -.018em;
}
body.hmatias-home .service-card p {
  color: #5a7084;
  font-size: .9rem;
  line-height: 1.65;
}
.hmatias-home .service-card a {
  color: #075fae;
  font-size: .8rem;
  font-weight: 700;
}
.hmatias-home .projects { padding-top: 88px; padding-bottom: 88px; }
.hmatias-home .project {
  border-color: #d9e5ef;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(6,45,86,.06);
}
.hmatias-home .project-caption { padding: 21px 22px 22px; }
.hmatias-home .project-caption small {
  color: #1268b2;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.45;
}
.hmatias-home .project-caption h3 {
  margin: 7px 0 7px;
  color: #0b3358;
  font-size: 1.08rem;
  font-weight: 730;
  letter-spacing: -.018em;
}
body.hmatias-home .project-caption p {
  color: #5a7084;
  font-size: .88rem;
  line-height: 1.62;
}
.hmatias-home .project-caption a {
  color: #075fae;
  font-size: .79rem;
  font-weight: 700;
}
.hmatias-home .supply { padding-top: 92px; padding-bottom: 92px; }
.hmatias-home .supply h2 { line-height: 1.12; }
body.hmatias-home .supply p { font-size: .94rem; line-height: 1.7; }
.hmatias-home .supply-list { gap: 12px 28px; }
.hmatias-home .supply-list span { font-size: .82rem; line-height: 1.5; }
.hmatias-home .supply-card {
  border-radius: 18px;
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
}
.hmatias-home .supply-card > span {
  font-size: .68rem;
  letter-spacing: .14em;
}
.hmatias-home .supply-card strong {
  font-size: 1.28rem;
  font-weight: 720;
  letter-spacing: -.02em;
}
.hmatias-home .division-card {
  border-radius: 16px;
  border-color: #d9e5ef;
  box-shadow: 0 10px 28px rgba(6,45,86,.05);
}
.hmatias-home .division-card-kicker {
  color: #1768aa;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.hmatias-home .division-card h3 {
  color: #0b3358;
  font-weight: 730;
  letter-spacing: -.018em;
}
body.hmatias-home .division-card p { color: #5a7084; font-size: .9rem; line-height: 1.65; }
.hmatias-home .sector-grid article {
  border-radius: 15px;
  border-color: #d9e5ef;
  box-shadow: 0 8px 24px rgba(6,45,86,.04);
}
.hmatias-home .sector-grid span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.hmatias-home .sector-grid h3 {
  color: #0b3358;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -.015em;
}
body.hmatias-home .sector-grid p { color: #5a7084; font-size: .86rem; line-height: 1.62; }
.hmatias-home .company-impact .company-lead,
.hmatias-home .company-impact .company-copy { color: #4d657a; }
.hmatias-home .contact { padding-top: 92px; padding-bottom: 92px; }
.hmatias-home .contact-list a,
.hmatias-home .contact-list > span { font-size: .84rem; line-height: 1.55; }
.hmatias-home .contact-form {
  border-radius: 16px;
  border-color: #d9e5ef;
  box-shadow: 0 14px 38px rgba(6,45,86,.07);
}
.hmatias-home .contact-form label {
  color: #23445f;
  font-size: .76rem;
  font-weight: 700;
}
.hmatias-home footer {
  padding-top: 60px;
  background: #041f3c;
}
.hmatias-home .footer-grid { gap: 34px; }
.hmatias-home .footer-grid strong {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.hmatias-home footer :is(p,a) {
  font-size: .78rem;
  line-height: 1.65;
}
.hmatias-home .footer-grid a { color: #bfd2e2; }
.hmatias-home .footer-grid a:hover { color: #fff; }
.hmatias-home .copyright {
  color: #8fa9bf;
  font-size: .71rem;
  line-height: 1.65;
}

@media (max-width: 1000px) and (min-width: 851px) {
  .hmatias-home .hero-grid { min-height: 560px; }
  .hmatias-home .hero-copy { padding: 62px 32px 58px 0; }
  body.hmatias-home .hero h1 { font-size: clamp(2.8rem, 4.7vw, 3.75rem); max-width: 11ch; }
  .hmatias-home .hero-visual { min-height: 560px; }
  .hmatias-home .hero-actions { flex-wrap: wrap; }
  .hmatias-home .company-impact-grid { gap: 34px; grid-template-columns: minmax(0,1fr) minmax(300px,.82fr); }
}
@media (max-width: 850px) {
  .hmatias-home .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hmatias-home .hero-copy { padding: 52px 0 48px; }
  .hmatias-home .hero .eyebrow { margin-bottom: 18px; }
  body.hmatias-home .hero h1 { font-size: clamp(2.75rem, 7vw, 4rem); line-height: 1; max-width: 12ch; }
  .hmatias-home .hero-copy > p { max-width: 46ch; }
  .hmatias-home .hero-values { max-width: 560px; }
  .hmatias-home .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hmatias-home .why-us-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hmatias-home .why-us-grid article { padding: 24px; }
  .hmatias-home .contact-grid { gap: 32px; }
  .hmatias-home .company-impact-grid { grid-template-columns: 1fr; gap: 30px; }
  .hmatias-home .company-identity-card { min-height: 360px; }
  .hmatias-home .services,
  .hmatias-home .projects,
  .hmatias-home .supply,
  .hmatias-home .contact { padding-top: 76px; padding-bottom: 76px; }
}
@media (max-width: 560px) {
  .hmatias-home .hero-copy { padding: 40px 0 42px; }
  .hmatias-home .hero .eyebrow { font-size: .68rem; letter-spacing: .14em; }
  body.hmatias-home .hero h1 { font-size: clamp(2.35rem, 10.7vw, 3.3rem); line-height: 1.01; max-width: 13ch; letter-spacing: -.045em; }
  .hmatias-home .hero-copy > p { margin-top: 18px; font-size: .98rem; line-height: 1.58; }
  .hmatias-home .hero-actions { gap: 12px; margin-top: 26px; }
  .hmatias-home .hero-values { gap: 16px; margin-top: 28px; }
  .hmatias-home :is(.service-grid, .contact-form) { grid-template-columns: minmax(0, 1fr); }
  .hmatias-home :is(.service-card, .contact-form) { padding: 24px; }
  .hmatias-home .section-heading { margin-bottom: 28px; }
  .hmatias-home .whatsapp-float { right: 10px; bottom: 12px; width: 44px; height: 44px; }
  .hmatias-home .hmatias-assistant { right: 10px; bottom: 66px; }
  .hmatias-home .hmatias-assistant-toggle { width: 44px; height: 44px; }
  .hmatias-home .hmatias-assistant-panel { bottom: 66px; }
  .hmatias-home .company-impact { padding: 68px 0; }
  .hmatias-home .company-overline { align-items: flex-start; flex-direction: column; }
  .hmatias-home .company-since { white-space: normal; }
  .hmatias-home .company-trust-grid { grid-template-columns: 1fr; }
  .hmatias-home .company-identity-card { min-height: 340px; padding: 28px 24px; }
  .hmatias-home .company-identity-meta { grid-template-columns: 1fr; }
  .hmatias-home .service-icon { width: 46px; height: 46px; background-size: 23px 23px; border-radius: 12px; }
  .hmatias-home .services,
  .hmatias-home .projects,
  .hmatias-home .supply,
  .hmatias-home .contact { padding-top: 64px; padding-bottom: 64px; }
}

.hmatias-home .hmatias-assistant-msg { font-size: .875rem; line-height: 1.5; }